Skip to content

Commit 1b3e7f1

Browse files
authored
Fix minor typing issue in rebuilder.py (#2798)
1 parent 4364218 commit 1b3e7f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

astroid/rebuilder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
T_Doc = TypeVar(
2929
"T_Doc",
30-
"ast.Module",
31-
"ast.ClassDef",
32-
"ast.FunctionDef" | "ast.AsyncFunctionDef",
30+
ast.Module,
31+
ast.ClassDef,
32+
ast.FunctionDef | ast.AsyncFunctionDef,
3333
)
3434
_FunctionT = TypeVar("_FunctionT", nodes.FunctionDef, nodes.AsyncFunctionDef)
3535
_ForT = TypeVar("_ForT", nodes.For, nodes.AsyncFor)
@@ -72,7 +72,7 @@ def __init__(
7272
else:
7373
self._parser_module = parser_module
7474

75-
def _get_doc(self, node: T_Doc) -> tuple[T_Doc, ast.Constant | ast.Str | None]:
75+
def _get_doc(self, node: T_Doc) -> tuple[T_Doc, ast.Constant | None]:
7676
"""Return the doc ast node."""
7777
try:
7878
if node.body and isinstance(node.body[0], ast.Expr):

0 commit comments

Comments
 (0)