You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mypy mypy_test.py --strictmypy_test.py:4: error: Call to untyped function "BinaryPayloadDecoder" in typed context [no-untyped-call]mypy_test.py:5: error: Call to untyped function "decode_16bit_int" in typed context [no-untyped-call]mypy_test.py:6: error: Call to untyped function "decode_32bit_int" in typed context [no-untyped-call]mypy_test.py:7: error: Call to untyped function "decode_8bit_int" in typed context [no-untyped-call]Found 4 errors in 1 file (checked 1 source file)
Workaround
A MyPy specific workaround is to add # type: ignore[no-untyped-call] to each line, but this isn't ideal.
The text was updated successfully, but these errors were encountered:
Issue
It would be nice if the
payload.py
module had consistent typehinting to pass static linting tools (e.g. MyPy):For example,
should be:
Note half of this module is already typehinted.
Reproduce
Set up environment:
Basic example:
Output:
Workaround
A MyPy specific workaround is to add
# type: ignore[no-untyped-call]
to each line, but this isn't ideal.The text was updated successfully, but these errors were encountered: