Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Python type hint issues #6

Closed
cclauss opened this issue Nov 5, 2021 · 1 comment
Closed

Python type hint issues #6

cclauss opened this issue Nov 5, 2021 · 1 comment

Comments

@cclauss
Copy link

cclauss commented Nov 5, 2021

% mypy --ignore-missing-imports --install-types --non-interactive .

examples/streamhandler.py:45: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:46: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:48: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:56: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:65: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:74: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:75: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:77: error: Incompatible types in assignment (expression has type "List[List[bytes]]", target has type "bytes")
examples/streamhandler.py:78: error: Incompatible types in assignment (expression has type "bool", target has type "bytes")
examples/streamhandler.py:79: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/streamhandler.py:87: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/sendresp.py:23: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/sendresp.py:25: error: Incompatible types in assignment (expression has type "List[List[bytes]]", target has type "bytes")
examples/basichandler.py:28: error: Incompatible types in assignment (expression has type "int", target has type "bytes")
examples/basichandler.py:30: error: Incompatible types in assignment (expression has type "List[List[bytes]]", target has type "bytes")
examples/holdhandler.py:75: error: Need type annotation for "conns" (hint: "conns: Dict[<type>, <type>] = ...")
Found 16 errors in 4 files (checked 6 source files)
@jkarneges
Copy link
Member

Thanks for this and sorry for the long delay. Condure has since been moved into Pushpin (as "connmgr") and we'll consider these type hint issues over there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants