As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible?
Normal weakproxy.ref's can be annotated as far as I think using
spam = ReferenceType[Class]
whereas
does not work. Is one supposed to just
as it is a proxy and should behave the same?
As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible?
Normal weakproxy.ref's can be annotated as far as I think using
whereas
does not work. Is one supposed to just
as it is a proxy and should behave the same?