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
Run mypy . and you should get this following error:
example/example.py:1: error: Skipping analyzing "amazon_paapi.models.item_result": module is installed, but missing library stubs or py.typed marker
example/example.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
example/example.py:5: note: Revealed type is "Any"
Current behavior
MyPy type hints are not being picked up from the package
Expected behavior
I would expect the revealed type of result to be Item, and I would expect MyPy to raise an error for the subsequent statement, print(result.item_info.content_info), because item_info.content_info could be None per my previous commit, so item_info.content_info.publication_date can potentially raise an AttributeError.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
mypy .
and you should get this following error:Current behavior
MyPy type hints are not being picked up from the package
Expected behavior
I would expect the revealed type of
result
to beItem
, and I would expect MyPy to raise an error for the subsequent statement,print(result.item_info.content_info)
, becauseitem_info.content_info
could beNone
per my previous commit, soitem_info.content_info.publication_date
can potentially raise anAttributeError
.The text was updated successfully, but these errors were encountered: