Skip to content

Commit

Permalink
ref: generated Enum type variables must match name (#74799)
Browse files Browse the repository at this point in the history
this is enforced in mypy 1.11

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored and Christinarlong committed Jul 26, 2024
1 parent e524a94 commit 75fd47a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sentry/utils/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def test_inf(self):
self.assertEqual(json.dumps(res), "null")

def test_enum(self):
enum = Enum("foo", "a b c")
res = enum.a
EnumFoo = Enum("EnumFoo", "a b c")
res = EnumFoo.a
self.assertEqual(json.dumps(res), "1")

def test_translation(self):
Expand Down

0 comments on commit 75fd47a

Please sign in to comment.