Searched refs:globalns (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/ |
D | typing.py | 270 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/ |
D | 3.6.3rc1.rst | 259 typing.get_type_hints now finds the right globalns for classes and modules 260 by default (when no ``globalns`` was specified by the caller).
|
D | 3.7.0a1.rst | 1548 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/ |
D | typing.rst | 1659 .. function:: get_type_hints(obj, globalns=None, localns=None, include_extras=False)
|