-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash with f-string docstrings (#4019)
Python does not consider f-strings to be docstrings, so we probably shouldn't be formatting them as such Fixes #4018 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
- Loading branch information
1 parent
e808e61
commit ecbd9e8
Showing
5 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
def foo(e): | ||
f""" {'.'.join(e)}""" | ||
|
||
def bar(e): | ||
f"{'.'.join(e)}" | ||
|
||
def baz(e): | ||
F""" {'.'.join(e)}""" | ||
|
||
# output | ||
def foo(e): | ||
f""" {'.'.join(e)}""" | ||
|
||
|
||
def bar(e): | ||
f"{'.'.join(e)}" | ||
|
||
|
||
def baz(e): | ||
f""" {'.'.join(e)}""" |
File renamed without changes.