@@ -58,7 +58,6 @@ def validates(version):
58
58
Returns:
59
59
60
60
callable: a class decorator to decorate the validator with the version
61
-
62
61
"""
63
62
64
63
def _validates (cls ):
@@ -83,7 +82,6 @@ def _generate_legacy_type_checks(types=()):
83
82
Returns:
84
83
85
84
A dictionary of definitions to pass to `TypeChecker`
86
-
87
85
"""
88
86
types = dict (types )
89
87
@@ -588,7 +586,6 @@ class RefResolver(object):
588
586
cache_remote (bool):
589
587
590
588
Whether remote refs should be cached after first resolution
591
-
592
589
"""
593
590
594
591
def __init__ (
@@ -622,13 +619,7 @@ def __init__(
622
619
self ._remote_cache = remote_cache
623
620
624
621
@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 ):
632
623
"""
633
624
Construct a resolver from a JSON schema object.
634
625
@@ -641,7 +632,6 @@ def from_schema(
641
632
Returns:
642
633
643
634
`RefResolver`
644
-
645
635
"""
646
636
647
637
return cls (base_uri = id_of (schema ), referrer = schema , * args , ** kwargs )
@@ -690,7 +680,6 @@ def resolving(self, ref):
690
680
ref (str):
691
681
692
682
The reference to resolve
693
-
694
683
"""
695
684
696
685
url , resolved = self .resolve (ref )
@@ -729,7 +718,6 @@ def resolve_fragment(self, document, fragment):
729
718
fragment (str):
730
719
731
720
a URI fragment to resolve within it
732
-
733
721
"""
734
722
735
723
fragment = fragment .lstrip (u"/" )
@@ -781,7 +769,6 @@ def resolve_remote(self, uri):
781
769
The retrieved document
782
770
783
771
.. _requests: https://pypi.org/project/requests/
784
-
785
772
"""
786
773
try :
787
774
import requests
0 commit comments