Searched refs:localns (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Lib/ |
D | typing.py | 319 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/ |
D | inspect.rst | 692 … .. 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.
|
D | typing.rst | 2026 .. function:: get_type_hints(obj, globalns=None, localns=None, include_extras=False)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a4.rst | 664 Add ``globalns`` and ``localns`` parameters to the :func:`inspect.signature`
|
/third_party/python/Lib/test/ |
D | test_inspect.py | 3535 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),
|