Skip to content

Commit 0497057

Browse files
committed
Fix Callable type for python 3.10
1 parent 543c6d2 commit 0497057

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/pyld/jsonld.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import warnings
2424
import uuid
2525

26-
from typing import Optional, Callable
26+
from typing import Optional, Callable, Any
2727
from pyld.canon import URDNA2015, URGNA2012, UnknownFormatError
2828
from pyld.nquads import ParserError, parse_nquads, to_nquad, to_nquads
2929
from pyld.identifier_issuer import IdentifierIssuer
@@ -124,8 +124,7 @@
124124
INITIAL_CONTEXTS = {}
125125

126126
# Handler to call if a key was dropped during expansion
127-
OnKeyDropped = Callable[[Optional[str]], ...]
128-
127+
OnKeyDropped = Callable[[Optional[str]], Any]
129128

130129
def log_on_key_dropped(key: Optional[str]):
131130
"""Default behavior on ignored JSON-LD keys is to log them."""

0 commit comments

Comments
 (0)