15
0

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:
2022-12-06 13:24:23 +00:00
committed by Git OBS Bridge
4 changed files with 17 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9dff4e126b2657c0b1e1c8c781199310e56fdc38f51669112849a557de3be543
size 41006

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ded2e4d947f0605abe9095ae3d38b01b7880b112bc3da0b4f888cd4a717c7acd
size 41386

View File

@@ -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>

View File

@@ -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