Lines Matching refs:localns
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
691 eval(self.__forward_code__, globalns, localns),
697 type_, globalns, localns, recursive_guard | {self.__forward_arg__}
1751 def get_type_hints(obj, globalns=None, localns=None, include_extras=False): argument
1797 base_locals = dict(vars(base)) if localns is None else localns
1798 if localns is None and globalns is None:
1824 if localns is None:
1825 localns = globalns
1826 elif localns is None:
1827 localns = globalns
1849 value = _eval_type(value, globalns, localns)