Commit 43a2009 1 parent fa8fb6c commit 43a2009 Copy full SHA for 43a2009
File tree 3 files changed +35
-1
lines changed
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
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
+
1
28
## v0.5.0 (2023-11-29)
2
29
3
30
### Feat
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " pysource-codegen"
3
- version = " 0.5.0 "
3
+ version = " 0.5.1 "
4
4
description = " "
5
5
authors = [
" Your Name <[email protected] >" ]
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -63,6 +63,13 @@ def test_invalid_ast(file):
63
63
assert is_valid_ast (tree ) == does_compile (tree )
64
64
65
65
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
+
66
73
def generate_invalid_ast (seed ):
67
74
print ("seed=" , seed )
68
75
You can’t perform that action at this time.
0 commit comments