Skip to content

Commit d654197

Browse files
committed
Style.
1 parent 25cf22b commit d654197

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

referencing/jsonschema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from __future__ import annotations
66

7-
from collections.abc import Sequence, Set
8-
from typing import Any, Iterable, Union
7+
from collections.abc import Iterable, Sequence, Set
8+
from typing import Any, Union
99

1010
from referencing import Anchor, Registry, Resource, Specification, exceptions
1111
from referencing._attrs import frozen

referencing/typing.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,9 @@
44

55
from __future__ import annotations
66

7+
from collections.abc import Mapping as Mapping
78
from typing import TYPE_CHECKING, Protocol, TypeVar
89

9-
try:
10-
from collections.abc import Mapping as Mapping
11-
12-
Mapping[str, str]
13-
except TypeError: # pragma: no cover
14-
from typing import Mapping as Mapping
15-
16-
1710
if TYPE_CHECKING:
1811
from referencing._core import Resolved, Resolver, Resource
1912

0 commit comments

Comments
 (0)