Skip to content

Commit e159b8c

Browse files
committed
Fix for Python 3.6: Callable is in typing, not typing_extensions
Even back in Python 3.6, typing had Callable in it, so this should be here. We need to rejig this *again* to do everything differently for 3.9+ as a bunch of these are 'deprecated' from 3.9 onwards, but that's another topic. Signed-off-by: Adam Williamson <[email protected]>
1 parent 5a5bf7b commit e159b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/openqa_client/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import logging
2626
import time
2727
import sys
28-
from typing import Any, Dict, List, MutableMapping, NoReturn, Optional, Union, overload
28+
from typing import Any, Callable, Dict, List, MutableMapping, NoReturn, Optional, Union, overload
2929

3030
from urllib.parse import urlparse, urlunparse
3131
import configparser
@@ -35,9 +35,9 @@
3535
import openqa_client.exceptions
3636

3737
if sys.version_info >= (3, 8):
38-
from typing import Literal, TypedDict, Callable
38+
from typing import Literal, TypedDict
3939
else: # pragma: no cover
40-
from typing_extensions import Literal, TypedDict, Callable # pragma: no cover
40+
from typing_extensions import Literal, TypedDict # pragma: no cover
4141

4242

4343
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)