Home
last modified time | relevance | path

Searched refs:globalns (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/
Dtyping.py270 def _eval_type(t, globalns, localns, recursive_guard=frozenset()): argument
277 return t._evaluate(globalns, localns, recursive_guard)
279 ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.__args__)
522 def _evaluate(self, globalns, localns, recursive_guard): argument
525 if not self.__forward_evaluated__ or localns is not globalns:
526 if globalns is None and localns is None:
527 globalns = localns = {}
528 elif globalns is None:
529 globalns = localns
531 localns = globalns
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.6.3rc1.rst259 typing.get_type_hints now finds the right globalns for classes and modules
260 by default (when no ``globalns`` was specified by the caller).
D3.7.0a1.rst1548 typing.get_type_hints now finds the right globalns for classes and modules
1549 by default (when no ``globalns`` was specified by the caller).
/external/python/cpython3/Doc/library/
Dtyping.rst1659 .. function:: get_type_hints(obj, globalns=None, localns=None, include_extras=False)