MCPcopy Index your code
hub / github.com/python-jsonschema/jsonschema / push_scope

Method push_scope

jsonschema/validators.py:982–991  ·  view source on GitHub ↗

Enter a given sub-scope. Treats further dereferences as being performed underneath the given scope.

(self, scope)

Source from the content-addressed store, hash-verified

980 return cls(base_uri=id_of(schema) or "", referrer=schema, *args, **kwargs) # noqa: B026, E501
981
982 def push_scope(self, scope):
983 """
984 Enter a given sub-scope.
985
986 Treats further dereferences as being performed underneath the
987 given scope.
988 """
989 self._scopes_stack.append(
990 self._urljoin_cache(self.resolution_scope, scope),
991 )
992
993 def pop_scope(self):
994 """

Callers 3

in_scopeMethod · 0.95
resolvingMethod · 0.95
_validate_referenceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected