diff --git a/referencing/jsonschema.py b/referencing/jsonschema.py index fb8668a..f1c8be8 100644 --- a/referencing/jsonschema.py +++ b/referencing/jsonschema.py @@ -4,8 +4,8 @@ from __future__ import annotations -from collections.abc import Sequence, Set -from typing import Any, Iterable, Union +from collections.abc import Iterable, Sequence, Set +from typing import Any, Union from referencing import Anchor, Registry, Resource, Specification, exceptions from referencing._attrs import frozen diff --git a/referencing/typing.py b/referencing/typing.py index d00b018..43890c0 100644 --- a/referencing/typing.py +++ b/referencing/typing.py @@ -4,16 +4,9 @@ from __future__ import annotations +from collections.abc import Mapping as Mapping from typing import TYPE_CHECKING, Protocol, TypeVar -try: - from collections.abc import Mapping as Mapping - - Mapping[str, str] -except TypeError: # pragma: no cover - from typing import Mapping as Mapping - - if TYPE_CHECKING: from referencing._core import Resolved, Resolver, Resource