Skip to content

Commit f6636f8

Browse files
committed
formatting
1 parent 545673b commit f6636f8

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

tests/test_is_subform.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,13 @@ def test_union_first_arg() -> None:
1919

2020
def test_old_union() -> None:
2121
# TODO: fix the mypy error
22-
assert not issubform(
23-
Union[int, str], # type: ignore[arg-type]
24-
int,
25-
)
26-
assert issubform(
27-
Union[int, str], # type: ignore[arg-type]
28-
object,
29-
)
22+
assert not issubform(Union[int, str], int) # type: ignore[arg-type]
23+
assert issubform(Union[int, str], object) # type: ignore[arg-type]
3024
assert issubform(
3125
Union[int, str], # type: ignore[arg-type]
3226
Union[str, int], # type: ignore[arg-type]
3327
)
3428
if sys.version_info >= (3, 10):
3529
assert issubform(
36-
Union[int, str], # type: ignore[unused-ignore, arg-type]
37-
int | str,
30+
Union[int, str], int | str # type: ignore[unused-ignore, arg-type]
3831
)

tests/test_never_type/test_runtime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
@mark.xfail # https://github.com/KotlinIsland/basedtyping/issues/22
99
def test_isinstance() -> None:
1010
assert not isinstance( # type: ignore[misc]
11-
1,
12-
Never, # type: ignore[arg-type]
11+
1, Never # type: ignore[arg-type]
1312
)
1413

1514

0 commit comments

Comments
 (0)