Skip to content

Commit 5f44acc

Browse files
committed
mark with @abstractmethod
1 parent afb82c6 commit 5f44acc

File tree

1 file changed

+3
-2
lines changed
  • src/check_jsonschema/schema_loader

1 file changed

+3
-2
lines changed

src/check_jsonschema/schema_loader/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import typing as t
66
import urllib.error
77
import urllib.parse
8-
from abc import ABC
8+
from abc import ABC, abstractmethod
99

1010
import jsonschema
1111

@@ -61,6 +61,7 @@ def _extend_with_pattern_implementation(
6161

6262

6363
class SchemaLoaderBase(ABC):
64+
@abstractmethod
6465
def get_validator(
6566
self,
6667
path: pathlib.Path | str,
@@ -69,7 +70,7 @@ def get_validator(
6970
regex_impl: RegexImplementation,
7071
fill_defaults: bool,
7172
) -> jsonschema.protocols.Validator:
72-
pass
73+
"""Get a validator for the given instance document."""
7374

7475

7576
class SchemaLoader(SchemaLoaderBase):

0 commit comments

Comments
 (0)