-
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.
Standardize type comments to always have one space (#2698)
- Loading branch information
1 parent
67119b9
commit aeca4e4
Showing
12 changed files
with
147 additions
and
52 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
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
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,10 @@ | ||
def f( | ||
a, # type: int | ||
): | ||
pass | ||
|
||
|
||
# test type comments | ||
def f(a, b, c, d, e, f, g, h, i): | ||
# type: (int, int, int, int, int, int, int, int, int) -> None | ||
pass |
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
# flags: --preview | ||
|
||
|
||
def f( | ||
a, # type: int | ||
): | ||
pass | ||
|
||
|
||
# test type comments | ||
def f(a, b, c, d, e, f, g, h, i): | ||
# type: (int, int, int, int, int, int, int, int, int) -> None | ||
pass | ||
|
||
|
||
def f( | ||
a, # type : int | ||
b, # type : int | ||
c, #type : int | ||
d, # type: int | ||
e, # type: int | ||
f, # type : int | ||
g, #type:int | ||
h, # type: int | ||
i, # type: int | ||
): | ||
# type: (...) -> None | ||
pass | ||
|
||
|
||
|
||
# output | ||
def f( | ||
a, # type: int | ||
): | ||
pass | ||
|
||
|
||
# test type comments | ||
def f(a, b, c, d, e, f, g, h, i): | ||
# type: (int, int, int, int, int, int, int, int, int) -> None | ||
pass | ||
|
||
|
||
def f( | ||
a, # type : int | ||
b, # type : int | ||
c, # type : int | ||
d, # type: int | ||
e, # type: int | ||
f, # type : int | ||
g, # type: int | ||
h, # type: int | ||
i, # type: int | ||
): | ||
# type: (...) -> None | ||
pass |
Oops, something went wrong.