Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Apr 23, 2024
1 parent 44b7692 commit b5df1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def fstring_to_string(node: Node) -> Leaf:
"""Converts an fstring node back to a string node."""
string_without_prefix = str(node)[len(node.prefix) :]
string_leaf = Leaf(token.STRING, string_without_prefix, prefix=node.prefix)
string_leaf.lineno = node.get_lineno()
string_leaf.lineno = node.get_lineno() or 0
return string_leaf


Expand Down

0 comments on commit b5df1ae

Please sign in to comment.