Skip to content

Commit

Permalink
Add union type hint for Type
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 committed Feb 15, 2023
1 parent a78610a commit 2cb3b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/einspect/views/view_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _attach_finalizer(types: Sequence[type], func: Callable) -> None:


def impl(
*cls: Type[_T] | UnionType,
*cls: Type[_T] | type | UnionType,
alloc: AllocMode | None = None,
detach: bool = False,
) -> Callable[[_Fn], _Fn]:
Expand Down

0 comments on commit 2cb3b06

Please sign in to comment.