Skip to content

Commit 97a98ed

Browse files
author
Wannes Boeykens
committed
Fix lint errors
1 parent 823a992 commit 97a98ed

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
@@ -62,8 +62,8 @@
6262

6363

6464
class MyTypeAliasForwardRef(TypeAliasForwardRef):
65-
def __or__(self, value):
66-
return Union[self, value]
65+
def __or__(self, value: Any) -> types.UnionType:
66+
return Union[self, value] # noqa: UP007
6767

6868

6969
def _get_types_type(obj: Any) -> str | None:

0 commit comments

Comments
 (0)