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
[mypyc] Handle non extention classes with attribute annotations for forward defined classes (#18577)
This PR makes `add_non_ext_class_attr_ann` behave the same way standard
python handles modules with `from __future__ import annotations` by
using string types. With this we can reference types declared further in
the file. But since this will change in future versions of python, let's
only do this for forward references, for types that are defined further
down in the same module.
This also works with string type annotations.
Fixesmypyc/mypyc#992
0 commit comments