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

Function my_hook

test-data/unit/plugins/fully_qualified_test_hook.py:21–24  ·  view source on GitHub ↗
(ctx: MethodSigContext)

Source from the content-addressed store, hash-verified

19
20
21def my_hook(ctx: MethodSigContext) -> CallableType:
22 return ctx.default_signature.copy_modified(
23 ret_type=ctx.api.named_generic_type("builtins.int", [])
24 )
25
26
27def plugin(version: str) -> type[FullyQualifiedTestPlugin]:

Callers

nothing calls this directly

Calls 2

copy_modifiedMethod · 0.45
named_generic_typeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…