Skip to content

Commit 2f3fb3c

Browse files
committed
Minor style.
1 parent a9b2463 commit 2f3fb3c

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

jsonschema/validators.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def validates(version):
5858
Returns:
5959
6060
callable: a class decorator to decorate the validator with the version
61-
6261
"""
6362

6463
def _validates(cls):
@@ -83,7 +82,6 @@ def _generate_legacy_type_checks(types=()):
8382
Returns:
8483
8584
A dictionary of definitions to pass to `TypeChecker`
86-
8785
"""
8886
types = dict(types)
8987

@@ -588,7 +586,6 @@ class RefResolver(object):
588586
cache_remote (bool):
589587
590588
Whether remote refs should be cached after first resolution
591-
592589
"""
593590

594591
def __init__(
@@ -622,13 +619,7 @@ def __init__(
622619
self._remote_cache = remote_cache
623620

624621
@classmethod
625-
def from_schema(
626-
cls,
627-
schema,
628-
id_of=_id_of,
629-
*args,
630-
**kwargs
631-
):
622+
def from_schema(cls, schema, id_of=_id_of, *args, **kwargs):
632623
"""
633624
Construct a resolver from a JSON schema object.
634625
@@ -641,7 +632,6 @@ def from_schema(
641632
Returns:
642633
643634
`RefResolver`
644-
645635
"""
646636

647637
return cls(base_uri=id_of(schema), referrer=schema, *args, **kwargs)
@@ -690,7 +680,6 @@ def resolving(self, ref):
690680
ref (str):
691681
692682
The reference to resolve
693-
694683
"""
695684

696685
url, resolved = self.resolve(ref)
@@ -729,7 +718,6 @@ def resolve_fragment(self, document, fragment):
729718
fragment (str):
730719
731720
a URI fragment to resolve within it
732-
733721
"""
734722

735723
fragment = fragment.lstrip(u"/")
@@ -781,7 +769,6 @@ def resolve_remote(self, uri):
781769
The retrieved document
782770
783771
.. _requests: https://pypi.org/project/requests/
784-
785772
"""
786773
try:
787774
import requests

0 commit comments

Comments
 (0)