We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08c399 commit e407477Copy full SHA for e407477
referencing/_core.py
@@ -1,13 +1,18 @@
1
from __future__ import annotations
2
3
from collections.abc import Iterable, Mapping, Sequence
4
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING, Any, Union
5
from urllib.parse import unquote, urldefrag, urljoin
6
7
from pyrsistent import m
8
from pyrsistent.typing import PMap
9
import attrs
10
11
+try:
12
+ Mapping[str, str]
13
+except TypeError:
14
+ from typing import Mapping
15
+
16
17
class UnsupportedSubclassing(Exception):
18
@classmethod
@@ -36,7 +41,7 @@ def frozen(cls):
36
41
return attrs.frozen(cls)
37
42
38
43
39
-Schema = bool | Mapping[str, Any]
44
+Schema = Union[bool, Mapping[str, Any]]
40
45
46
47
@frozen
0 commit comments