forked from pool/python-flake8-pyi
Accepting request 1040556 from devel:languages:python
Forwarded request #1040478 from yarunachalam - Update to version 22.11.0: * Bugfixes: Specify encoding when opening files. Prevents UnicodeDecodeError on Windows when the file contains non-CP1252 characters. Contributed by Avasam. Significant changes have been made to the Y041 check. Previously, Y041 flagged "redundant numeric unions" (e.g. float | int, complex | float or complex | int) in all contexts outside of type aliases. This was incorrect. PEP 484 only specifies that type checkers should treat int as an implicit subtype of float in the specific context of parameter annotations for functions and methods. Y041 has therefore been revised to only emit errors on "redundant numeric unions" in the context of parameter annotations. * Other changes: Support running with flake8 v6. OBS-URL: https://build.opensuse.org/request/show/1040556 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8-pyi?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9dff4e126b2657c0b1e1c8c781199310e56fdc38f51669112849a557de3be543
|
||||
size 41006
|
||||
3
flake8-pyi-22.11.0.tar.gz
Normal file
3
flake8-pyi-22.11.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ded2e4d947f0605abe9095ae3d38b01b7880b112bc3da0b4f888cd4a717c7acd
|
||||
size 41386
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 6 03:30:37 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to version 22.11.0:
|
||||
* Bugfixes:
|
||||
Specify encoding when opening files. Prevents UnicodeDecodeError on Windows when the file contains non-CP1252 characters. Contributed by Avasam.
|
||||
Significant changes have been made to the Y041 check. Previously, Y041 flagged "redundant numeric unions"
|
||||
(e.g. float | int, complex | float or complex | int) in all contexts outside of type aliases. This was incorrect.
|
||||
PEP 484 only specifies that type checkers should treat int as an implicit subtype of float in the specific context of parameter annotations
|
||||
for functions and methods. Y041 has therefore been revised to only emit errors on "redundant numeric unions" in the context of parameter annotations.
|
||||
* Other changes:
|
||||
Support running with flake8 v6.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 4 15:45:00 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-flake8-pyi
|
||||
Version: 22.10.0
|
||||
Version: 22.11.0
|
||||
Release: 0
|
||||
Summary: A plugin for flake8 to enable linting .pyi files
|
||||
License: MIT
|
||||
|
||||
Reference in New Issue
Block a user