GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — false alarm on decode call · Issue #16441 · python/typeshed 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 DescriptionBug Report The following file is legal python, as far as I understand it: import codecs a = codecs.lookup("UTF-8") b = bytes(b"potato") c = a.decode(b, errors="replace") Running mypy 2.3.1 produces: $ mypy wibble.py wibble.py:5: error: Unexpected keyword argument "errors" for "__call__" of "_Decoder" [call-arg] wibble.py:5: note: "__call__" defined in "codecs" To Reproduce https://mypy-play.net/?mypy=latest&python=latest&gist=e34d60fa6ddb3835c9d2dae7eae7a301 Expected Behavior I would expect no message at all. Reasoning:
Actual Behavior False alarm is issued. Your Environment
Activity
MetadataMetadataAssigneesLabelshelp 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 ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |