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

Function add_extra_methods_hook

test-data/unit/plugins/add_method.py:17–19  ·  view source on GitHub ↗
(ctx: ClassDefContext)

Source from the content-addressed store, hash-verified

15
16
17def add_extra_methods_hook(ctx: ClassDefContext) -> bool:
18 add_method(ctx, "foo_implicit", [], NoneType())
19 return True
20
21
22def plugin(version: str) -> type[AddOverrideMethodPlugin]:

Callers

nothing calls this directly

Calls 2

add_methodFunction · 0.90
NoneTypeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…