Skip to content

Commit 4448e41

Browse files
authored
Merge pull request #18 from 15r10nk/fix_try_star
fixed several bugs
2 parents 7160031 + 43a2009 commit 4448e41

24 files changed

+1033
-360
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ repos:
4242
- hooks:
4343
- id: black
4444
repo: https://github.com/psf/black
45-
rev: 23.10.1
45+
rev: 23.12.1
4646
- hooks:
4747
- id: blacken-docs
4848
repo: https://github.com/asottile/blacken-docs
4949
rev: 1.16.0
5050

5151
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
52-
rev: v2.11.0
52+
rev: v2.12.0
5353
hooks:
5454
- id: pretty-format-yaml
5555
args: [--autofix, --indent, '2']
@@ -63,4 +63,4 @@ repos:
6363
stages:
6464
- commit-msg
6565
repo: https://github.com/commitizen-tools/commitizen
66-
rev: 3.12.0
66+
rev: v3.13.0

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

poetry.lock

+200-281
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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"

0 commit comments

Comments
 (0)