mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
bpo-42128: __match_args__ can't be a list anymore (GH-25203)
This commit is contained in:
parent
3d4af4a876
commit
f84d5a1136
4 changed files with 26 additions and 16 deletions
|
@ -3401,7 +3401,7 @@ class TestMatchArgs(unittest.TestCase):
|
|||
self.assertEqual(C(42).__match_args__, ('a',))
|
||||
|
||||
def test_explicit_match_args(self):
|
||||
ma = []
|
||||
ma = ()
|
||||
@dataclass
|
||||
class C:
|
||||
a: int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue