Skip to content

Commit

Permalink
Turns out this also fixes psf#2699 :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Apr 6, 2022
1 parent c3a6505 commit fc48804
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/data/return_annotation_brackets.py
Expand Up @@ -87,6 +87,10 @@ def foo() -> tuple[loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
def foo() -> tuple[int, int, int,]:
return 2

# Long string example
def frobnicate() -> "ThisIsTrulyUnreasonablyExtremelyLongClassName | list[ThisIsTrulyUnreasonablyExtremelyLongClassName]":
pass

# output
# Control
def double(a: int) -> int:
Expand Down Expand Up @@ -208,3 +212,11 @@ def foo() -> (
]
):
return 2


# Long string example
def frobnicate() -> (
"ThisIsTrulyUnreasonablyExtremelyLongClassName |"
" list[ThisIsTrulyUnreasonablyExtremelyLongClassName]"
):
pass

0 comments on commit fc48804

Please sign in to comment.