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

Method _from_sigs

mypy/stubgenc.py:203–206  ·  view source on GitHub ↗
(cls, sigs: list[FunctionSig], is_abstract: bool = False)

Source from the content-addressed store, hash-verified

201
202 @classmethod
203 def _from_sigs(cls, sigs: list[FunctionSig], is_abstract: bool = False) -> CFunctionStub:
204 return CFunctionStub(
205 sigs[0].name, "\n".join(sig.format_sig()[:-4] for sig in sigs), is_abstract
206 )
207
208 def __get__(self) -> None: # noqa: PLE0302
209 """

Callers

nothing calls this directly

Calls 3

CFunctionStubClass · 0.85
format_sigMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected