Skip to content

Commit 8354dc0

Browse files
authored
Merge pull request #121 from python-jsonschema/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 1630506 + 6af5343 commit 8354dc0

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
hooks:
2323
- id: isort
2424
- repo: https://github.com/psf/black
25-
rev: 23.12.1
25+
rev: 24.1.1
2626
hooks:
2727
- name: black
2828
id: black

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)