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

Function get_first_arg

mypy/plugins/singledispatch.py:45–49  ·  view source on GitHub ↗

Get the element that corresponds to the first argument passed to the function

(args: list[list[T]])

Source from the content-addressed store, hash-verified

43
44
45def get_first_arg(args: list[list[T]]) -> T | None:
46 """Get the element that corresponds to the first argument passed to the function"""
47 if args and args[0]:
48 return args[0][0]
49 return None
50
51
52def make_fake_register_class_instance(

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…