diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-01-04 09:37:56 +0000 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-01-04 09:37:56 +0000 |
commit | 2f3fb3c9bd7ec8c6d43e045df6786b82223a0545 (patch) | |
tree | f9e58f1f1074c13a6d15433dcee223591c9b53ad | |
parent | a9b246360923ea728cd8676b6b31c4ba20cb59ce (diff) | |
download | jsonschema-2f3fb3c9bd7ec8c6d43e045df6786b82223a0545.tar.gz |
Minor style.
-rw-r--r-- | jsonschema/validators.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/jsonschema/validators.py b/jsonschema/validators.py index 8f0da7a..612a3ab 100644 --- a/jsonschema/validators.py +++ b/jsonschema/validators.py @@ -58,7 +58,6 @@ def validates(version): Returns: callable: a class decorator to decorate the validator with the version - """ def _validates(cls): @@ -83,7 +82,6 @@ def _generate_legacy_type_checks(types=()): Returns: A dictionary of definitions to pass to `TypeChecker` - """ types = dict(types) @@ -588,7 +586,6 @@ class RefResolver(object): cache_remote (bool): Whether remote refs should be cached after first resolution - """ def __init__( @@ -622,13 +619,7 @@ class RefResolver(object): self._remote_cache = remote_cache @classmethod - def from_schema( - cls, - schema, - id_of=_id_of, - *args, - **kwargs - ): + def from_schema(cls, schema, id_of=_id_of, *args, **kwargs): """ Construct a resolver from a JSON schema object. @@ -641,7 +632,6 @@ class RefResolver(object): Returns: `RefResolver` - """ return cls(base_uri=id_of(schema), referrer=schema, *args, **kwargs) @@ -690,7 +680,6 @@ class RefResolver(object): ref (str): The reference to resolve - """ url, resolved = self.resolve(ref) @@ -729,7 +718,6 @@ class RefResolver(object): fragment (str): a URI fragment to resolve within it - """ fragment = fragment.lstrip(u"/") @@ -781,7 +769,6 @@ class RefResolver(object): The retrieved document .. _requests: https://pypi.org/project/requests/ - """ try: import requests |