We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21aa83e commit 9852ee4Copy full SHA for 9852ee4
tests/annotations/test.py
@@ -899,8 +899,14 @@ class MyEnum2(EnumProperties):
899
# should not be interpreted as a property
900
label: str
901
902
- with self.assertRaises(AttributeError):
903
- MyEnum2.VALUE1.label
+ if sys.version_info[:2] < (3, 14):
+ with self.assertRaises(AttributeError):
904
+ MyEnum2.VALUE1.label
905
+ else:
906
+ # Python 3.14+ supports this use case
907
+ self.assertEqual(MyEnum2.VALUE1.label, "label1")
908
+ self.assertEqual(MyEnum2.VALUE2.label, "label2")
909
+ self.assertEqual(MyEnum2.VALUE3.label, "label3")
910
911
class MyEnum3(EnumProperties):
912
VALUE1 = 0, "label1"
0 commit comments