Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e8b4cb

Browse files
Reorganize tests
Signed-off-by: Edgar Ramírez Mondragón <[email protected]>
1 parent f97fe24 commit 1e8b4cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test-data/unit/check-sentinels.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ ALIAS = MISSING
184184
# Not a type alias (i.e. not a special form)
185185
reveal_type(ALIAS) # N: Revealed type is "MISSING"
186186

187-
def func(x: ALIAS | int = ALIAS) -> None:
187+
def func(x: int | MISSING = MISSING) -> None:
188188
pass
189189

190190
func(MISSING)
@@ -200,7 +200,7 @@ ALIAS = MISSING
200200
# The value still identifies as the same sentinel...
201201
assert_type(ALIAS, MISSING)
202202

203-
def func(x: int | MISSING = MISSING) -> None:
203+
def func(x: ALIAS | int = ALIAS) -> None:
204204
pass
205205

206206
func(MISSING)

0 commit comments

Comments
 (0)