Closed anentropic closed 4 years ago
Bit of an edge case as you would not expect people to be using typing.TypeVar if they only have docstring types...
typing.TypeVar
But I had been doing it anyway since I knew we were going to migrate to real annotations
So ideally we want these recognised as defined types in the current document, same as top-level class defs already are
it's possible to imagine other cases, dynamically defined types like MyCls = type(...) but, for now, life is too short
MyCls = type(...)
Bit of an edge case as you would not expect people to be using
typing.TypeVar
if they only have docstring types...But I had been doing it anyway since I knew we were going to migrate to real annotations
So ideally we want these recognised as defined types in the current document, same as top-level class defs already are