Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-arrow committed Sep 8, 2022
1 parent 6355389 commit 44360a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sigparse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,18 @@ def _union_or(left: typing.Any, right: typing.Any) -> typing.Any:

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


def _revert_PEP604() -> None:
if sys.version_info >= (3, 10):
return

forbiddenfruit.reverse(type, "__or__")


GLOBAL_PEP604 = False

def global_PEP604():

def global_PEP604() -> None:
global GLOBAL_PEP604
GLOBAL_PEP604 = True
_apply_PEP604()
Expand All @@ -69,6 +72,7 @@ class Parameter:
"""
`default` is `inspect._empty` when there is no default.
"""

name: str
annotation: typing.Any
default: typing.Any
Expand Down

0 comments on commit 44360a7

Please sign in to comment.