Skip to content

Commit

Permalink
Wrongly moved import.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Sep 11, 2024
1 parent ee03ec4 commit 6b12cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonschema/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

from __future__ import annotations

from typing import TYPE_CHECKING, ClassVar, Protocol, runtime_checkable
from typing import TYPE_CHECKING, Any, ClassVar, Protocol, runtime_checkable

# in order for Sphinx to resolve references accurately from type annotations,
# it needs to see names like `jsonschema.TypeChecker`
# therefore, only import at type-checking time (to avoid circular references),
# but use `jsonschema` for any types which will otherwise not be resolvable
if TYPE_CHECKING:
from collections.abc import Any, Iterable, Mapping
from collections.abc import Iterable, Mapping

import referencing.jsonschema

Expand Down

0 comments on commit 6b12cf8

Please sign in to comment.