Skip to content

Commit 7160031

Browse files
committed
bump: version 0.4.3 → 0.5.0
1 parent 777b8a9 commit 7160031

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

CHANGELOG.md

+60
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
## v0.5.0 (2023-11-29)
2+
3+
### Feat
4+
5+
- removed 3.7 support
6+
- constant float, int and bytes values
7+
- removed 3.7 support
8+
9+
### Fix
10+
11+
- a variable can not be nonlocal and global
12+
- workaround for https://github.com/python/cpython/issues/111123
13+
- correct handling of used names in SetComp
14+
- check for yield in return-annotation in a inner function of an async function which returns a value
15+
- use correct minimal length for lists of child nodes
16+
- Starred expression inside AnnAssign target is not allowed
17+
- correct handling of used names in DictComp
18+
- an annotated varible can not be declared nonlocal
19+
- global declaration of a used name in a return annotation is not allowed
20+
- global declaration of a class in the current scope is not allowed
21+
- **3.8**: use correct node types for Slices
22+
- kwonlyargs and kw_defaults has to have the same size
23+
- handle default arguments in the scope where the function is defined
24+
- handle Slice and Starred in Subscript correctly
25+
- **yield**: correct handling of code which is part of a function (yield inside decorator)
26+
- handle MatchAs as name which can be used with global/nonlocal
27+
- class variables can not be accessed by nonlocal from child scope
28+
- correct handling of used names in ListComp
29+
- **global**: check for used names in comprehension.iter
30+
- **global**: use of names in annotations is not allowed before their global declaration
31+
- **nonlocal**: do not search for assigned variables inside genarator expressions
32+
- allow negative constants as match values
33+
- allow all expression as match values
34+
- handle wildcard with guard clause correct
35+
- allow to match constants
36+
- allow return with value in async function without yield, but inner generator function
37+
- allow async GeneratorExp in non async code
38+
- allow break in async for
39+
- allow nonlocal definition of one variable twice
40+
- allow global definition of one variable twice
41+
- allow nonlocal of variables which are only deleted in the parent scope
42+
- allow `nonlocal __class__` in methods
43+
- allow Nonlocal in ClassDef
44+
- support Slice ExtSlice and Index for 3.8 and 3.7
45+
- allow Subscript as AnnAssign target
46+
- allow yield inside lambda
47+
- generate code like `del(a,[b,c])`
48+
- generate correct AnnAssign
49+
- allow raise at module level
50+
- string constants issues
51+
- allow continue outside of functions
52+
- allow empty modules
53+
- allow annotation of attribute assignments
54+
- recreated poetry.lock
55+
56+
### Refactor
57+
58+
- created ast_dump
59+
- removed the internal use of compile()
60+
161
## v0.4.3 (2023-11-12)
262

363
### Fix

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.4.3"
3+
version = "0.5.0"
44
description = ""
55
authors = ["Your Name <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)