Lines Matching refs:globalns
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 = {}
459 elif globalns is None:
460 globalns = localns
462 localns = globalns
464 eval(self.__forward_code__, globalns, localns),
926 def get_type_hints(obj, globalns=None, localns=None): argument
963 if globalns is None:
966 base_globals = globalns
977 if globalns is None:
979 globalns = obj.__dict__
981 globalns = getattr(obj, '__globals__', {})
983 localns = globalns
985 localns = globalns
1001 value = _eval_type(value, globalns, localns)