Skip to content

Commit cdc2807

Browse files
committed
Cleanup internal type annotation variables
`_format.py` had a few internal variables to make type annotations shorter to write. However, these can cause issues with sphinx nitpick. Even though the variables removed in this commit aren't causing a build failure, removing them is a good precaution.
1 parent 17384e7 commit cdc2807

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jsonschema/_format.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
from jsonschema.exceptions import FormatError
1111

12-
_FormatCheckerFunc = typing.Callable[[typing.Any], bool]
13-
_CheckerRaises = typing.Union[Exception, typing.Tuple[Exception, ...]]
14-
1512

1613
class FormatChecker(object):
1714
"""
@@ -38,7 +35,10 @@ class FormatChecker(object):
3835

3936
checkers: dict[
4037
str,
41-
tuple[_FormatCheckerFunc, _CheckerRaises],
38+
tuple[
39+
typing.Callable[[typing.Any], bool],
40+
Exception | tuple[Exception, ...],
41+
],
4242
] = {}
4343

4444
def __init__(self, formats=None):

0 commit comments

Comments
 (0)