Lines Matching refs:localns
255 def _eval_type(t, globalns, localns): argument
260 return t._evaluate(globalns, localns)
262 ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__)
455 def _evaluate(self, globalns, localns): argument
456 if not self.__forward_evaluated__ or localns is not globalns:
457 if globalns is None and localns is None:
458 globalns = localns = {}
460 globalns = localns
461 elif localns is None:
462 localns = globalns
464 eval(self.__forward_code__, globalns, localns),
926 def get_type_hints(obj, globalns=None, localns=None): argument
973 value = _eval_type(value, base_globals, localns)
982 if localns is None:
983 localns = globalns
984 elif localns is None:
985 localns = globalns
1001 value = _eval_type(value, globalns, localns)