Skip to content

Commit 10c2cbd

Browse files
committed
revert ABC
1 parent e3d6b66 commit 10c2cbd

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

src/check_jsonschema/schema_loader/main.py

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

109
import jsonschema
1110

@@ -60,8 +59,7 @@ def _extend_with_pattern_implementation(
6059
)
6160

6261

63-
class SchemaLoaderBase(ABC):
64-
@abstractmethod
62+
class SchemaLoaderBase:
6563
def get_validator(
6664
self,
6765
path: pathlib.Path | str,
@@ -70,7 +68,7 @@ def get_validator(
7068
regex_impl: RegexImplementation,
7169
fill_defaults: bool,
7270
) -> jsonschema.protocols.Validator:
73-
"""Get a validator for the given instance document."""
71+
raise NotImplementedError
7472

7573

7674
class SchemaLoader(SchemaLoaderBase):

0 commit comments

Comments
 (0)