codegen-2 2.16.2__tar.gz → 2.16.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codegen-2
3
- Version: 2.16.2
3
+ Version: 2.16.4
4
4
  Summary: Meta-programming
5
5
  Author: Binh Vu
6
6
  Author-email: Binh Vu <binh@toan2.com>
@@ -3,7 +3,7 @@ import codegen.models.statement as stmt
3
3
  from codegen.models.ast import AST
4
4
  from codegen.models.expr import PredefinedFn
5
5
  from codegen.models.program import ImportHelper, Program
6
- from codegen.models.types import KEY, AstID
6
+ from codegen.models.types import KEY, AstID, ImportFn
7
7
  from codegen.models.var import DeferredVar, Var, VarScope
8
8
 
9
9
  __all__ = [
@@ -18,4 +18,5 @@ __all__ = [
18
18
  "AstID",
19
19
  "KEY",
20
20
  "ImportHelper",
21
+ "ImportFn",
21
22
  ]
@@ -1,9 +1,11 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Literal
3
+ from typing import Callable, Literal, Optional
4
4
 
5
5
  KEY = str | tuple
6
6
  NO_KEY = tuple()
7
7
  REGISTER_TYPE = Literal["var"]
8
8
 
9
9
  AstID = tuple[int, ...]
10
+
11
+ ImportFn = Callable[[str, bool, Optional[str]], None]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codegen-2"
3
- version = "2.16.2"
3
+ version = "2.16.4"
4
4
  description = "Meta-programming"
5
5
  authors = [{ name = "Binh Vu", email = "binh@toan2.com" }]
6
6
  license = { text = "MIT" }
@@ -9,10 +9,7 @@ requires-python = ">=3.11"
9
9
  dependencies = []
10
10
 
11
11
  [dependency-groups]
12
- dev = [
13
- "pytest>=8.0.0",
14
- "autoflake>=2.2.1",
15
- ]
12
+ dev = ["pytest>=8.0.0", "autoflake>=2.2.1"]
16
13
 
17
14
  [build-system]
18
15
  requires = ["uv_build"]
File without changes