-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
Description
Feature
It's possible to make a def that's simultaneously typed and untyped eg: https://mypy-play.net/?mypy=latest&python=3.9&flags=disallow-untyped-calls&gist=7946ef5bbce794503defa44284147e56
Here Lock is "untyped" but appears to be a main.py:17: note: Revealed type is 'def () -> main.Lock'
Pitch
reveal_type should let me know that this object has an untyped constructor:
main.py:17: note: Revealed type is 'Untyped[def () -> main.Lock']
See also #5943 (comment)
this tripped up the anyio project in the definition of anyio.Lock agronholm/anyio#289
uSpike