From 44360a7abff27ebbf1dd9ccb584333ee0974c8ca Mon Sep 17 00:00:00 2001 From: Lunarmagpie Date: Wed, 7 Sep 2022 23:23:39 -0400 Subject: [PATCH] fix linting --- sigparse/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sigparse/__init__.py b/sigparse/__init__.py index 1f8c0c5..e7e5569 100644 --- a/sigparse/__init__.py +++ b/sigparse/__init__.py @@ -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() @@ -69,6 +72,7 @@ class Parameter: """ `default` is `inspect._empty` when there is no default. """ + name: str annotation: typing.Any default: typing.Any