-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
false alarm on decode call #16441
Copy link
Copy link
Open
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: false positiveType checkers report false errorsType checkers report false errors
Description
Activity
Metadata
Metadata
Assignees
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: false positiveType checkers report false errorsType checkers report false errors
Bug Report
The following file is legal python, as far as I understand it:
Running mypy 2.3.1 produces:
To Reproduce
https://mypy-play.net/?mypy=latest&python=latest&gist=e34d60fa6ddb3835c9d2dae7eae7a301
Expected Behavior
I would expect no message at all. Reasoning:
errorsis parameterActual Behavior
False alarm is issued.
Your Environment
mypy.ini(and other config files): none