Skip to content

Commit 6af5343

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 080e962 commit 6af5343

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

referencing/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Cross-specification, implementation-agnostic JSON referencing.
33
"""
4+
45
from referencing._core import Anchor, Registry, Resource, Specification
56

67
__all__ = ["Anchor", "Registry", "Resource", "Specification"]

referencing/_core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def __call__(
3333
segments: Sequence[int | str],
3434
resolver: Resolver[D],
3535
subresource: Resource[D],
36-
) -> Resolver[D]:
37-
...
36+
) -> Resolver[D]: ...
3837

3938

4039
def _detect_or_error(contents: D) -> Specification[D]:
@@ -192,8 +191,9 @@ class Resource(Generic[D]):
192191
def from_contents(
193192
cls,
194193
contents: D,
195-
default_specification: type[Specification[D]]
196-
| Specification[D] = Specification,
194+
default_specification: (
195+
type[Specification[D]] | Specification[D]
196+
) = Specification,
197197
) -> Resource[D]:
198198
"""
199199
Create a resource guessing which specification applies to the contents.

referencing/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Errors, oh no!
33
"""
4+
45
from __future__ import annotations
56

67
from typing import TYPE_CHECKING, Any

referencing/retrieval.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Helpers related to (dynamic) resource retrieval.
33
"""
4+
45
from __future__ import annotations
56

67
from functools import lru_cache

referencing/typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Type-annotation related support for the referencing library.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import TYPE_CHECKING, Protocol, TypeVar

0 commit comments

Comments
 (0)