codegen-2 2.13.0__tar.gz → 2.14.0__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.13.0
3
+ Version: 2.14.0
4
4
  Summary: Meta-programming
5
5
  License: MIT
6
6
  Author: Binh Vu
@@ -308,6 +308,13 @@ class PredefinedFn:
308
308
  def to_python(self):
309
309
  return f"({', '.join([item.to_python() for item in self.items])})"
310
310
 
311
+ @dataclass
312
+ class set(Expr):
313
+ items: Sequence[Expr]
314
+
315
+ def to_python(self):
316
+ return f"{{{', '.join([item.to_python() for item in self.items])}}}"
317
+
311
318
  @dataclass
312
319
  class list(Expr):
313
320
  items: Sequence[Expr]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "codegen-2"
3
- version = "2.13.0"
3
+ version = "2.14.0"
4
4
  description = "Meta-programming"
5
5
  authors = ["Binh Vu <binh@toan2.com>"]
6
6
  license = "MIT"
File without changes
File without changes