-
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.
Remove NBSP at the beginning of comments (#2092)
Closes #2091
- Loading branch information
1 parent
ea4e714
commit d960d5d
Showing
5 changed files
with
60 additions
and
1 deletion.
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,44 @@ | ||
from .config import ( ConfigTypeAttributes, Int, Path, # String, | ||
# DEFAULT_TYPE_ATTRIBUTES, | ||
) | ||
|
||
result = 1 # A simple comment | ||
result = ( 1, ) # Another one | ||
|
||
result = 1 # type: ignore | ||
result = 1# This comment is talking about type: ignore | ||
square = Square(4) # type: Optional[Square] | ||
|
||
def function(a:int=42): | ||
""" This docstring is already formatted | ||
a | ||
b | ||
""" | ||
# There's a NBSP + 3 spaces before | ||
# And 4 spaces on the next line | ||
pass | ||
|
||
# output | ||
from .config import ( | ||
ConfigTypeAttributes, | ||
Int, | ||
Path, # String, | ||
# DEFAULT_TYPE_ATTRIBUTES, | ||
) | ||
|
||
result = 1 # A simple comment | ||
result = (1,) # Another one | ||
|
||
result = 1 # type: ignore | ||
result = 1 # This comment is talking about type: ignore | ||
square = Square(4) # type: Optional[Square] | ||
|
||
|
||
def function(a: int = 42): | ||
"""This docstring is already formatted | ||
a | ||
b | ||
""" | ||
# There's a NBSP + 3 spaces before | ||
# And 4 spaces on the next line | ||
pass |
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