Skip to content

Add a predefined union type ProxyOr[T] #564

@gpauloski

Description

@gpauloski

Describe the Request

Naming TBD, but it would essentially be:

ProxyOr: TypeAlias = Union[Proxy[T], T]

We already internally have this (ProxyType), but it'd be nice to expose for users now that the mypy plugin treats Proxy[T] and T equivalently.

Sample Code

No response

Metadata

Metadata

Assignees

Labels

enhancementNew features or improvements to existing functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions