Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tests/fixtures/type_alias_310_fixed.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Type Alias requires Python 3.10+"""
"""Type Alias requires Python 3.12+"""
from typing import Union

Alias = Union[int, str]
3 changes: 3 additions & 0 deletions tests/fixtures/type_alias_312_fixed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Type Alias requires Python 3.12+"""

type Alias = int | str
8 changes: 4 additions & 4 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ async def test_py_version(
id="type_alias_pep585_39_updated",
),
pytest.param(
'type_alias_310.py', 'type_alias_310_fixed.py',
None, 0,
id="type_alias_pep604_310_updated",
marks=pytest.mark.xfail(reason="Not implented in mypy + pyupgrade (yet)"),
'type_alias_312.py', 'type_alias_312_fixed.py',
['--py312-plus'], 0,
id="type_alias_pep604_312_updated",
marks=pytest.mark.xfail(reason="Not implented in pyupgrade (yet)"),
),
),
)
Expand Down
Loading