-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When an import is used in an annotation but also is re exported in an __all__ statement, TCH001 rings.
"""Re export x annotation."""
from .stuff import Stuff
__all__ = ("Stuff", "get_stuff")
def get_stuff(x: Stuff) -> None:
"""Get some stuff."""
...__init__.py:2:20: TCH001 Move application import `.stuff.Stuff` into a type-checking blockReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working