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
I suspect this ultimately comes from how type.__doc__ is defined on typeshed. Verified that this PR would fix the issue if it were merged into typeshed. Now we just need to wait and see if typeshed upstream is OK with the patch.
According to the feedback from upstream, we probably need to relax our check for now and treat every class toplevel attribute as initialized in stub files.
Expectation: no type error
Actual:
ERROR 4:9-20: Instance-only attribute
docof class
Foois not visible on the class [missing-attribute]
The text was updated successfully, but these errors were encountered: