Skip to content

Commit 4822afd

Browse files
committed
change docstrings to comments
1 parent 06321c1 commit 4822afd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mypy/fastparse.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,8 @@ def visit_Str(self, n: ast3.Str) -> Union[UnicodeExpr, StrExpr]:
858858
# JoinedStr(expr* values)
859859
@with_line
860860
def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
861-
"""Each of n.values is a str or FormattedValue; we just concatenate
862-
them all using ''.join."""
861+
# Each of n.values is a str or FormattedValue; we just concatenate
862+
# them all using ''.join.
863863
empty_string = StrExpr('')
864864
empty_string.set_line(n.lineno, n.col_offset)
865865
strs_to_join = ListExpr(self.translate_expr_list(n.values))
@@ -874,9 +874,9 @@ def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
874874
# FormattedValue(expr value)
875875
@with_line
876876
def visit_FormattedValue(self, n: ast3.FormattedValue) -> Expression:
877-
"""A FormattedValue is a component of a JoinedStr, or it can exist
878-
on its own. We translate them to individual '{}'.format(value)
879-
calls -- we don't bother with the conversion/format_spec fields."""
877+
# A FormattedValue is a component of a JoinedStr, or it can exist
878+
# on its own. We translate them to individual '{}'.format(value)
879+
# calls -- we don't bother with the conversion/format_spec fields.
880880
exp = self.visit(n.value)
881881
exp.set_line(n.lineno, n.col_offset)
882882
format_string = StrExpr('{}')

0 commit comments

Comments
 (0)