MCPcopy Create free account
hub / github.com/python/mypy / is_pybind11_overloaded_function_docstring

Function is_pybind11_overloaded_function_docstring

mypy/stubgenc.py:143–144  ·  view source on GitHub ↗
(docstring: str, name: str)

Source from the content-addressed store, hash-verified

141
142
143def is_pybind11_overloaded_function_docstring(docstring: str, name: str) -> bool:
144 return docstring.startswith(f"{name}(*args, **kwargs)\nOverloaded function.\n\n")
145
146
147def generate_stub_for_c_module(

Callers 1

get_function_sigMethod · 0.85

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…