Skip to content

Commit 43a2009

Browse files
committed
bump: version 0.5.0 → 0.5.1
1 parent fa8fb6c commit 43a2009

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## v0.5.1 (2024-01-23)
2+
3+
### Fix
4+
5+
- add no type_comment when changing AnnAssign to Assign
6+
- **3.8**: ExtSlice can not be nested
7+
- no lambda in annotation scope within class scope
8+
- use None MatchSingleton for invalid match expressions
9+
- do not change the order of MatchClass.kwd_attrs
10+
- correct handling of MatchAs without a name
11+
- MatchSingleton can only be used for None, True or False
12+
- Assign.target needs a minimal length of 1
13+
- AnnAssign can only be simple if the target is a Name
14+
- MatchValue can not be used for None, True or False
15+
- AugAssign requires Store context for target
16+
- TypeAlias.name requires a Store context
17+
- Dict .keys and .values has the same number of elements
18+
- Compare .ops and .comparators has the same number of elementes
19+
- use correct .ctx for nodes
20+
- analyse rest in mapping-pattern as written variable
21+
- **global**: analyse used variables in annotations
22+
- allow only except handler with a type in try-star blocks
23+
24+
### Refactor
25+
26+
- moved unparse to utils
27+
128
## v0.5.0 (2023-11-29)
229

330
### Feat

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pysource-codegen"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
description = ""
55
authors = ["Your Name <[email protected]>"]
66
readme = "README.md"

tests/test_invalid_ast.py

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ def test_invalid_ast(file):
6363
assert is_valid_ast(tree) == does_compile(tree)
6464

6565

66+
def x_test_example():
67+
seed = 2273381
68+
tree = generate_ast(seed)
69+
# print(ast.dump(tree, indent=2))
70+
assert is_valid_ast(tree)
71+
72+
6673
def generate_invalid_ast(seed):
6774
print("seed=", seed)
6875

0 commit comments

Comments
 (0)