[Python-ideas] Delay evaluation of annotations

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Sep 23 01:50:55 EDT 2016


אלעזר wrote:
>     it feels like a
>     placeholder for this meaning would be better.  E.g.:
> 
>     class A:
>         def __add__(self, other: CLS) -> CLS: ...

That's fine for a class that refers to itself, but
what about classes that refer to each other? This
only addresses a small part of the problem.

-- 
Greg


More information about the Python-ideas mailing list