Releases: 15r10nk/pysource-codegen
v0.6.0
What's Changed
Feat
- more variation in string constants
- start to support 3.13
Fix
- fixed typing
- correct probability spelling
- { and } are not allowed in formatspec, because they can not be escaped
- asynchronous comprehension in TypeVar.bound
- asynchronous comprehension outside of an asynchronous function
- no async code in type annotations
- the same varibale can be declared global multiple times
- Starred expression inside ClassDef.bases
- named expression cannot be used within a TypeVar bound
- no async generators in type aliases
- allow await in generator expressions
- dict comprehension is a valid base class
- named expression is a valid base class
- allow SetComp in type-scope
- lambda is valid inside annotations
- made generator expressions valid inside class bases and type annotations
- allow ListComp in type-scope
- named-expressions inside list-comprehensions use the outside scope
- restrict match value patterns
- variable can not be nonlocal if it is declared global in the parent scope
- count MatchStar variables as none usable global names
- non default type params before type params with default values
Full Changelog: v0.5.2...v0.6.0
v0.5.2
What's Changed
- Explicitly re-export
generate()
in__init__.py
@AlexWaygood
Full Changelog: v0.5.1...v0.5.2
v0.5.1
This version hopefully fixes last bugs where pysource-codegen generated code with syntax errors🤞.
The next goal is to make sure that pysource-codegen can generate 100% of all possible valid Python syntaxes.
Many thanks to all my sponsors for their support
@nathanjmcdougall
@pawamoy
@alexmojaki
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
This version contains many bug fixes and improvements. I have developed a good testing strategy and pysource-codegen is well on its way to becoming a code generator that can generate any Python code.
Full Changelog: v0.4.3...v0.5.0
v0.4.3
What's Changed
- Update README.md by @nathanjmcdougall in #13
- fix: remove upper bound from dependencies in pyproject.toml by @15r10nk in #15
New Contributors
- @nathanjmcdougall made their first contribution in #13
Full Changelog: v0.4.2...v0.4.3
v0.4.2
v0.4.1
reverted a refactoring which produced invalid global
and nonlocal
statements.
Full Changelog: v0.4.0...v0.4.1