typing_copilot icon indicating copy to clipboard operation
typing_copilot copied to clipboard

Missing type hints for 3rd party package warning gets shown more than once per package

Open obi1kenobi opened this issue 4 years ago • 0 comments

Example duplicates with identical module names:

WARNING: mypy was not able to find type hints for module 'pytest' since it does not seem to be installed in the current environment. Assuming it has no type hints available.
WARNING: mypy was not able to find type hints for module 'pytest' since it does not seem to be installed in the current environment. Assuming it has no type hints available.

Example duplicates with different module names but part of the same package:

WARNING: mypy was not able to find type hints for module 'pyorient' since it does not seem to be installed in the current environment. Assuming it has no type hints available.
WARNING: mypy was not able to find type hints for module 'pyorient.constants' since it does not seem to be installed in the current environment. Assuming it has no type hints available.
WARNING: mypy was not able to find type hints for module 'pyorient.ogm' since it does not seem to be installed in the current environment. Assuming it has no type hints available.

To avoid overwhelming the user with repetitive output, we'd like each package to show up only once regardless of which of their modules or submodules are lacking type hints.

obi1kenobi avatar Nov 06 '20 23:11 obi1kenobi