Skip to content

weakref.proxy is not generic #3445

Description

@septatrix

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

ham = ProxyType[Class]

does not work. Is one supposed to just

egg = Class

as it is a proxy and should behave the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions