From fa5bd3f591d4f20911461f15512657777424406c Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 23 Jan 2023 11:49:32 -0800 Subject: [PATCH] Fix typing in #314 (#315) --- src/sphinx_autodoc_typehints/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sphinx_autodoc_typehints/patches.py b/src/sphinx_autodoc_typehints/patches.py index ca2c9eb3..b91f839e 100644 --- a/src/sphinx_autodoc_typehints/patches.py +++ b/src/sphinx_autodoc_typehints/patches.py @@ -86,7 +86,7 @@ def patch_google_docstring_lookup_annotation() -> None: GoogleDocstring._lookup_annotation = patched_lookup_annotation # type: ignore[assignment] -def install_patches(app): +def install_patches(app: Sphinx) -> None: fix_autodoc_typehints_for_overloaded_methods() patch_attribute_handling(app) patch_google_docstring_lookup_annotation()