Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
threading through chain api
Signed-off-by: Dibri Nsofor <[email protected]>
  • Loading branch information
dibrinsofor committed Sep 5, 2026
commit 3288ae8a512eff03e5b98f17c7e8fbe9d77ef25d
3 changes: 3 additions & 0 deletions mypy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,9 @@ def get_function_signature_hook(
def get_function_hook(self, fullname: str) -> Callable[[FunctionContext], Type] | None:
return self._find_hook(lambda plugin: plugin.get_function_hook(fullname))

def get_function_def_hook(self, fullname:str) -> Callable[[FunctionDefContext], FunctionDefHookResult] | None:
return self._find_hook(lambda plugin: plugin.get_function_def_hook(fullname))

def get_method_signature_hook(
self, fullname: str
) -> Callable[[MethodSigContext], FunctionLike] | None:
Expand Down