-
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
68cd137
commit ccdde24
Showing
7 changed files
with
72 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,57 @@ | ||
def foo( | ||
# type: Foo | ||
x): pass | ||
# 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 foo( | ||
# type: Foo | ||
x, | ||
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 |