@@ -95,6 +95,7 @@ def validates(version):
9595 collections.abc.Callable:
9696
9797 a class decorator to decorate the validator with the version
98+
9899 """
99100
100101 def _validates (cls ):
@@ -209,6 +210,7 @@ def create(
209210 Returns:
210211
211212 a new `jsonschema.protocols.Validator` class
213+
212214 """
213215 # preemptively don't shadow the `Validator.format_checker` local
214216 format_checker_arg = format_checker
@@ -566,6 +568,7 @@ def extend(
566568 class. Note that no implicit copying is done, so a copy should
567569 likely be made before modifying it, in order to not affect the
568570 old validator.
571+
569572 """
570573 all_validators = dict (validator .VALIDATORS )
571574 all_validators .update (validators )
@@ -892,6 +895,7 @@ class _RefResolver:
892895 .. deprecated:: v4.18.0
893896
894897 ``RefResolver`` has been deprecated in favor of `referencing`.
898+
895899 """
896900
897901 _DEPRECATION_MESSAGE = (
@@ -961,6 +965,7 @@ def from_schema( # noqa: D417
961965 Returns:
962966
963967 `_RefResolver`
968+
964969 """
965970 return cls (base_uri = id_of (schema ) or "" , referrer = schema , * args , ** kwargs ) # noqa: B026, E501
966971
@@ -1040,6 +1045,7 @@ def resolving(self, ref):
10401045 ref (str):
10411046
10421047 The reference to resolve
1048+
10431049 """
10441050 url , resolved = self .resolve (ref )
10451051 self .push_scope (url )
@@ -1121,6 +1127,7 @@ def resolve_fragment(self, document, fragment):
11211127 fragment (str):
11221128
11231129 a URI fragment to resolve within it
1130+
11241131 """
11251132 fragment = fragment .lstrip ("/" )
11261133
@@ -1190,6 +1197,7 @@ def resolve_remote(self, uri):
11901197 The retrieved document
11911198
11921199 .. _requests: https://pypi.org/project/requests/
1200+
11931201 """
11941202 try :
11951203 import requests
@@ -1301,6 +1309,7 @@ def validate(instance, schema, cls=None, *args, **kwargs): # noqa: D417
13011309 .. rubric:: Footnotes
13021310 .. [#] known by a validator registered with
13031311 `jsonschema.validators.validates`
1312+
13041313 """
13051314 if cls is None :
13061315 cls = validator_for (schema )
0 commit comments