MCPcopy Index your code
hub / github.com/python/mypy / is_complex

Function is_complex

mypy/stats.py:480–482  ·  view source on GitHub ↗
(t: Type)

Source from the content-addressed store, hash-verified

478
479
480def is_complex(t: Type) -> bool:
481 t = get_proper_type(t)
482 return is_generic(t) or isinstance(t, (FunctionLike, TupleType, TypeVarType))
483
484
485def is_special_form_any(t: AnyType) -> bool:

Callers 1

typeMethod · 0.85

Calls 3

get_proper_typeFunction · 0.90
is_genericFunction · 0.85
isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…