Skip to content

Commit

Permalink
remove generic alias (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow authored Oct 19, 2022
1 parent 1d29d34 commit f0fcd70
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sigparse/_pep604.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def _apply_PEP604() -> None:
def _union_or(left: typing.Any, right: typing.Any) -> typing.Any:
return typing.Union[left, right]

setattr(typing._GenericAlias, "__or__", _union_or) # type: ignore
setattr(typing._GenericAlias, "__ror__", _union_or) # type: ignore

forbiddenfruit.curse(type, "__or__", _union_or)


Expand Down

0 comments on commit f0fcd70

Please sign in to comment.