Skip to content

Commit 8e86073

Browse files
author
Wannes Boeykens
committed
Fix mypy error again
1 parent abb1a11 commit 8e86073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinx_autodoc_typehints/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _future_annotations_imported(obj: Any) -> bool:
451451

452452

453453
def get_all_type_hints(
454-
autodoc_mock_imports: list[str], obj: Any, name: str, localns: dict[Any, TypeAliasForwardRef]
454+
autodoc_mock_imports: list[str], obj: Any, name: str, localns: dict[Any, MyTypeAliasForwardRef]
455455
) -> dict[str, Any]:
456456
result = _get_type_hint(autodoc_mock_imports, name, obj, localns)
457457
if not result:
@@ -523,7 +523,7 @@ def _resolve_type_guarded_imports(autodoc_mock_imports: list[str], obj: Any) ->
523523

524524

525525
def _get_type_hint(
526-
autodoc_mock_imports: list[str], name: str, obj: Any, localns: dict[Any, TypeAliasForwardRef]
526+
autodoc_mock_imports: list[str], name: str, obj: Any, localns: dict[Any, MyTypeAliasForwardRef]
527527
) -> dict[str, Any]:
528528
_resolve_type_guarded_imports(autodoc_mock_imports, obj)
529529
try:

0 commit comments

Comments
 (0)