Skip to content

Commit

Permalink
add some trailing comma cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Apr 24, 2024
1 parent 8c3c94f commit 57fe1e1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/data/cases/type_param_defaults.py
Expand Up @@ -14,6 +14,12 @@ def simple[T=something_that_is_long](short1: int, short2: str, short3: bytes) ->
def longer[something_that_is_long=something_that_is_long](something_that_is_long: something_that_is_long) -> something_that_is_long:
pass

def trailing_comma1[T=int,](a: str):
pass

def trailing_comma2[T=int](a: str,):
pass

# output

type A[T = int] = float
Expand Down Expand Up @@ -41,3 +47,15 @@ def longer[
something_that_is_long = something_that_is_long
](something_that_is_long: something_that_is_long) -> something_that_is_long:
pass


def trailing_comma1[
T = int,
](a: str):
pass


def trailing_comma2[
T = int
](a: str,):
pass

0 comments on commit 57fe1e1

Please sign in to comment.