You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
As stub files should generally be considered to be using from __future__ import annotations, I believe this should work. (mypy accepts it also.) Easily worked around, so just a minor issue.
Ah, I vaguely recall dealing with this a couple years ago when I was trying to figure out how to handle nested classes. I don't remember anymore why I could only get things working with the fully qualified name, but it might be time to take another look.
Activity
srittau commentedon Jun 26, 2020
Actually, this is not related to order. Even if
Baris defined beforebar, it fails. UsingFoo.Barto reference it seems to work.[-]Inner class defined after use in stub[/-][+]Inner class can't be used as type[/+]rchen152 commentedon Jun 26, 2020
Ah, I vaguely recall dealing with this a couple years ago when I was trying to figure out how to handle nested classes. I don't remember anymore why I could only get things working with the fully qualified name, but it might be time to take another look.
martindemello commentedon May 25, 2022
this works now, after @rchen152's work on inner class support.