Overview

Request 1040556 accepted

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.

Request History
Matej Cepl's avatar

mcepl created request

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.


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar_suse added as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:50"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:adi:50"


Dominique Leuenberger's avatar

dimstar accepted review


Dominique Leuenberger's avatar

dimstar_suse accepted review

Staging Project openSUSE:Factory:Staging:adi:50 got accepted.


Dominique Leuenberger's avatar

dimstar_suse approved review

Staging Project openSUSE:Factory:Staging:adi:50 got accepted.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Staging Project openSUSE:Factory:Staging:adi:50 got accepted.

openSUSE Build Service is sponsored by