-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
If I simply want to import some classes to make proper type annotations, why should I deal with cyclic import issue? Cuz, the code involved is kind of "useless" i.e. deletion would not change anything.
So, I proposal that we can have a special mechanism, like from a import A as A.
Do you see the point? import A as A, which is totally meaningless. Anyone who has a brain would not do it and the interpreter will know this import is just for type annotations.
The change is fairly trivial.
Metadata
Metadata
Assignees
Labels
No labels