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 9bcd091 commit c885b1eCopy full SHA for c885b1e
stubs/pika/pika/exchange_type.pyi
@@ -1,7 +1,19 @@
1
-from enum import Enum
+import sys
2
3
-class ExchangeType(Enum):
4
- direct = "direct"
5
- fanout = "fanout"
6
- headers = "headers"
7
- topic = "topic"
+if sys.version_info >= (3, 11):
+ from enum import StrEnum
+
+ class ExchangeType(StrEnum):
+ direct = "direct"
8
+ fanout = "fanout"
9
+ headers = "headers"
10
+ topic = "topic"
11
12
+else:
13
+ from enum import Enum
14
15
+ class ExchangeType(str, Enum):
16
17
18
19
0 commit comments