Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Move test to new file
  • Loading branch information
p-sawicki committed Apr 14, 2026
commit 7daeba7ce27fd2b4e2a00d859f3f90e5970a35fc
7 changes: 0 additions & 7 deletions mypyc/test-data/irbuild-classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -2163,13 +2163,6 @@ class BadDerived(NonAcyclicBase): # E: "acyclic" can't be used in a class that
class BadGeneric(Generic[T]): # E: "acyclic" can't be used in a class that inherits from non-acyclic type "typing.Generic"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about testing traits and non-native classes as bases (fine to do this in a follow-up PR)?

pass

[case testAcyclicGenericIsRejected_python3_12]
from mypy_extensions import mypyc_attr

@mypyc_attr(acyclic=True)
class BadGeneric[T]: # E: "acyclic" can't be used in a class that inherits from non-acyclic type "typing.Generic"
pass

[case testUnsupportedGetAttr]
from mypy_extensions import mypyc_attr

Expand Down
6 changes: 6 additions & 0 deletions mypyc/test-data/irbuild-python312.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[case testAcyclicGenericIsRejected_python3_12]
from mypy_extensions import mypyc_attr

@mypyc_attr(acyclic=True)
class BadGeneric[T]: # E: "acyclic" can't be used in a class that inherits from non-acyclic type "typing.Generic"
pass
3 changes: 3 additions & 0 deletions mypyc/test/test_irbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"irbuild-match.test",
]

if sys.version_info >= (3, 12):
files.append("irbuild-python312.test")

if sys.version_info >= (3, 14):
files.append("irbuild-python314.test")

Expand Down
Loading