Add precise values for enum members where possible (#11299)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
Eric Traut
2024-04-22 07:10:59 -07:00
committed by GitHub
parent b3bfbefa7f
commit 17f1c4628a
36 changed files with 1093 additions and 1087 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from enum import Enum
class DeliveryMode(Enum):
Transient: int
Persistent: int
Transient = 1
Persistent = 2
+4 -4
View File
@@ -1,7 +1,7 @@
from enum import Enum
class ExchangeType(Enum):
direct: str
fanout: str
headers: str
topic: str
direct = "direct"
fanout = "fanout"
headers = "headers"
topic = "topic"