Skip to content

Commit 03bc32f

Browse files
committed
fix dubious type hints
1 parent a5b0b1c commit 03bc32f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema/_keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Keyword:
2828

2929
def __init__(
3030
self,
31-
func: typing.Optional[callable] = None, /,
31+
func: typing.Optional[typing.Callable] = None, /,
3232
needs: typing.Optional[typing.Iterable[str]] = (),
3333
):
3434
self.func = func
@@ -40,7 +40,7 @@ def __call__(self, validator, property, instance, schema):
4040
return self.func(validator, property, instance, schema)
4141

4242

43-
def keyword(func: typing.Optional[callable] = None, /, **kwargs):
43+
def keyword(func: typing.Optional[typing.Callable] = None, /, **kwargs):
4444
"""
4545
Syntactic sugar to decorate a function as a keyword.
4646

0 commit comments

Comments
 (0)