Skip to content

Commit cc4fc23

Browse files
committed
SQ -> Allow TypeAlias and PlaceholderNode to be stringified/printed
1 parent 5a64c78 commit cc4fc23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/strconv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ def visit_nonlocal_decl(self, o: mypy.nodes.NonlocalDecl) -> str:
213213
def visit_decorator(self, o: mypy.nodes.Decorator) -> str:
214214
return self.dump([o.var, o.decorators, o.func], o)
215215

216-
def visit_type_alias(self, o: mypy.nodes.TypeAlias, /) -> T:
216+
def visit_type_alias(self, o: mypy.nodes.TypeAlias, /) -> str:
217217
return self.dump([o.name, o.target, o.alias_tvars, o.no_args], o)
218218

219-
def visit_placeholder_node(self, o: mypy.nodes.PlaceholderNode, /) -> T:
219+
def visit_placeholder_node(self, o: mypy.nodes.PlaceholderNode, /) -> str:
220220
return self.dump([o.fullname], o)
221221

222222
# Statements

0 commit comments

Comments
 (0)