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

Function is_fastcall_supported

mypyc/codegen/emitmodule.py:1594–1601  ·  view source on GitHub ↗
(fn: FuncIR, capi_version: tuple[int, int])

Source from the content-addressed store, hash-verified

1592
1593
1594def is_fastcall_supported(fn: FuncIR, capi_version: tuple[int, int]) -> bool:
1595 if fn.class_name is not None:
1596 if fn.name == "__call__":
1597 # We can use vectorcalls (PEP 590) when supported
1598 return True
1599 # TODO: Support fastcall for __init__ and __new__.
1600 return fn.name != "__init__" and fn.name != "__new__"
1601 return True
1602
1603
1604def collect_literals(fn: FuncIR, literals: Literals) -> None:

Callers 3

emit_module_methodsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…