Main changes
Due to PEP-695, it's now allowed
to use []
in decorators only for python3.12+
.
@MyClassDecorator[T, V]
def some_function(): ...
Features
- Adds
WPS243
: forbids complexfinally
bodies, #3458 - Adds
WPS478
: forbids using non strict slice operations, #1011 - Adds
WPS479
: forbids using multiline fstrings, #3405 - Adds
WPS480
: forbids using comments inside formatted string, #3404
Bugfixes
- Removes unnecessary
WPS604
andWPS614
rules from thenoqa.py
, #3420 - Fixes
WPS115
false-positive onStrEnum
,IntEnum
,IntFlag
attributes, #3381 - Fixes
WPS432
, now it ignores magic numbers inLiteral
, #3397 - Fixes
WPS466
for generic type specificationsMyClassDecorator[T]
, #3417 - Fixes
WPS212
to ignore nested classes and functions
when countingreturn
statements, #3413 - Improves
WPS349
highlighting, #3437
New Contributors
- @LordGvozd made their first contribution in #3362
- @NikitaSemenovAiforia made their first contribution in #3382
- @wjqsm made their first contribution in #3403
- @mkaraev made their first contribution in #3411
- @joscha made their first contribution in #3421
- @MIXgleb made their first contribution in #3423
- @dgtrv made their first contribution in #3431
- @alexeev-prog made their first contribution in #3461
Full Changelog: 1.1.0...1.2.0