codegen-2 2.8.0__tar.gz → 2.8.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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codegen-2
3
- Version: 2.8.0
3
+ Version: 2.8.1
4
4
  Summary: Meta-programming
5
5
  License: MIT
6
6
  Author: Binh Vu
@@ -219,6 +219,8 @@ class ExprNegation(Expr):
219
219
  expr: Expr
220
220
 
221
221
  def to_python(self):
222
+ if isinstance(self.expr, ExprIs):
223
+ return f"{self.expr.left.to_python()} is not {self.expr.right.to_python()}"
222
224
  return f"not {self.expr.to_wrapped_python()}"
223
225
 
224
226
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "codegen-2"
3
- version = "2.8.0"
3
+ version = "2.8.1"
4
4
  description = "Meta-programming"
5
5
  authors = ["Binh Vu <binh@toan2.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes