Home
last modified time | relevance | path

Searched refs:localns (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/
Dtyping.py319 def _eval_type(t, globalns, localns, recursive_guard=frozenset()): argument
326 return t._evaluate(globalns, localns, recursive_guard)
328 ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.__args__)
676 def _evaluate(self, globalns, localns, recursive_guard): argument
679 if not self.__forward_evaluated__ or localns is not globalns:
680 if globalns is None and localns is None:
681 globalns = localns = {}
683 globalns = localns
684 elif localns is None:
685 localns = globalns
[all …]
/third_party/python/Doc/library/
Dinspect.rst692 … .. classmethod:: Signature.from_callable(obj, *, follow_wrapped=True, globalns=None, localns=None)
697 ``localns`` will be used as the namespaces when resolving annotations.
709 ``globalns`` and ``localns`` parameters.
Dtyping.rst2026 .. function:: get_type_hints(obj, globalns=None, localns=None, include_extras=False)
/third_party/python/Misc/NEWS.d/
D3.10.0a4.rst664 Add ``globalns`` and ``localns`` parameters to the :func:`inspect.signature`
/third_party/python/Lib/test/
Dtest_inspect.py3535 localns = {'str': tuple, 'MyClass': dict}
3540 signature_func(isa.function, eval_str=True, locals=localns),
3549 signature_func(isa.function, eval_str=True, globals=globalns, locals=localns),