ethereum / eth-typing

Python types for type hinting commonly used ethereum types
MIT License
30 stars 35 forks source link

"eth_typing" does not explicitly export attribute #35

Closed bh2smith closed 2 years ago

bh2smith commented 2 years ago

I am running into some issues with mypy and imports from this package.

src/multisend.py:9: error: Module "eth_typing" does not explicitly export attribute "ChecksumAddress"; implicit reexport disabled
src/multisend.py:9: error: Module "eth_typing" does not explicitly export attribute "HexStr"; implicit reexport disabled
src/multisend.py:9: error: Module "eth_typing" does not explicitly export attribute "URI"; implicit reexport disabled

I would expect that I actually can import these...

bh2smith commented 2 years ago

Never mind, had to import the full path:

from eth_typing.ethpm import URI
from eth_typing.encoding import HexStr
from eth_typing.evm import ChecksumAddress

Before it was

from eth_typing import URI, HexStr, ChecksumAddress

as auto-magically suggested by my IDE