bpo-42128: __match_args__ can't be a list anymore (GH-25203)

This commit is contained in:
Brandt Bucher 2021-04-05 19:17:08 -07:00 committed by GitHub
parent 3d4af4a876
commit f84d5a1136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 16 deletions

View file

@ -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