Skip to content

Commit

Permalink
Magic trailing comma example for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Apr 3, 2022
1 parent 86bbff0 commit c3a6505
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/data/return_annotation_brackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def foo() -> (
def foo() -> tuple[loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong, loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong]:
return 2

# Magic trailing comma example
def foo() -> tuple[int, int, int,]:
return 2

# output
# Control
def double(a: int) -> int:
Expand Down Expand Up @@ -193,3 +197,14 @@ def foo() -> (
]
):
return 2


# Magic trailing comma example
def foo() -> (
tuple[
int,
int,
int,
]
):
return 2

0 comments on commit c3a6505

Please sign in to comment.