15
0

Accepting request 1105894 from home:mcalabkova:branches:devel:languages:python

- Update to 23.6.0
  * Y011/Y014/Y015: Allow math constants math.inf, math.nan, math.e, 
    math.pi, math.tau, and their negatives in default values. Some 
    other semantically equivalent values, such as x = inf (from math 
    import inf), or x = np.inf (import numpy as np), should be rewritten 
    to x = math.inf.
  * Y053: Disallow string or bytes literals with length >50 characters. 
    Previously this rule only applied to parameter default values; 
    it now applies everywhere.
  * Y054: Disallow numeric literals with a string representation >10 
    characters long. Previously this rule only applied to parameter 
    default values; it now applies everywhere.
  * Y055: Unions of the form type[X] | type[Y] can be simplified to type[X | Y].
  * The way in which flake8-pyi modifies pyflakes runs has been improved.
  * Introduce Y056: Various type checkers have different levels of support 
    for method calls on __all__. Use __all__ += ["foo", "bar"] instead, 
    as this is known to be supported by all major type checkers.
  * Support Python 3.12
  * Support PEP 695 syntax for declaring type aliases
  * Introduce Y057: Do not use typing.ByteString or collections.abc.ByteString.
  * flake8-pyi no longer supports being run on Python 3.7.
  * flake8-pyi no longer supports being run with flake8 <v6.

OBS-URL: https://build.opensuse.org/request/show/1105894
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=19
This commit is contained in:
2023-08-25 18:47:40 +00:00
committed by Git OBS Bridge
parent 6e67e8b4c5
commit 5e5d7cc4a9
5 changed files with 40 additions and 14 deletions

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Fri Aug 25 11:40:31 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Update to 23.6.0
* Y011/Y014/Y015: Allow math constants math.inf, math.nan, math.e,
math.pi, math.tau, and their negatives in default values. Some
other semantically equivalent values, such as x = inf (from math
import inf), or x = np.inf (import numpy as np), should be rewritten
to x = math.inf.
* Y053: Disallow string or bytes literals with length >50 characters.
Previously this rule only applied to parameter default values;
it now applies everywhere.
* Y054: Disallow numeric literals with a string representation >10
characters long. Previously this rule only applied to parameter
default values; it now applies everywhere.
* Y055: Unions of the form type[X] | type[Y] can be simplified to type[X | Y].
* The way in which flake8-pyi modifies pyflakes runs has been improved.
* Introduce Y056: Various type checkers have different levels of support
for method calls on __all__. Use __all__ += ["foo", "bar"] instead,
as this is known to be supported by all major type checkers.
* Support Python 3.12
* Support PEP 695 syntax for declaring type aliases
* Introduce Y057: Do not use typing.ByteString or collections.abc.ByteString.
* flake8-pyi no longer supports being run on Python 3.7.
* flake8-pyi no longer supports being run with flake8 <v6.
-------------------------------------------------------------------
Mon Mar 6 15:53:17 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>