15
0

Accepting request 1040478 from home:yarunachalam:branches:devel:languages:python

- 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/1040478
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=15
This commit is contained in:
2022-12-06 09:43:58 +00:00
committed by Git OBS Bridge
parent 7b92b6e1ec
commit 6b42e7dfd3
4 changed files with 17 additions and 4 deletions

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>