codegen-2 2.15.0__tar.gz → 2.15.1__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,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: codegen-2
3
- Version: 2.15.0
3
+ Version: 2.15.1
4
4
  Summary: Meta-programming
5
5
  License: MIT
6
+ License-File: LICENSE
6
7
  Author: Binh Vu
7
8
  Author-email: binh@toan2.com
8
9
  Requires-Python: >=3.11,<4.0
@@ -11,6 +12,7 @@ Classifier: Programming Language :: Python :: 3
11
12
  Classifier: Programming Language :: Python :: 3.11
12
13
  Classifier: Programming Language :: Python :: 3.12
13
14
  Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
14
16
  Description-Content-Type: text/markdown
15
17
 
16
18
  # codegen
@@ -306,6 +306,8 @@ class PredefinedFn:
306
306
  items: Sequence[Expr]
307
307
 
308
308
  def to_python(self):
309
+ if len(self.items) == 1:
310
+ return f"({self.items[0].to_python()},)"
309
311
  return f"({', '.join([item.to_python() for item in self.items])})"
310
312
 
311
313
  @dataclass
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "codegen-2"
3
- version = "2.15.0"
3
+ version = "2.15.1"
4
4
  description = "Meta-programming"
5
5
  authors = ["Binh Vu <binh@toan2.com>"]
6
6
  license = "MIT"
File without changes
File without changes