We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb7af3 commit 3b66c5aCopy full SHA for 3b66c5a
1 file changed
google/cloud/sql/connector/enums.py
@@ -19,9 +19,10 @@
19
from google.cloud.sql.connector.exceptions import IncompatibleDriverError
20
21
22
+# TODO: Replace Enum with StrEnum when Python 3.11 is minimum supported version
23
class RefreshStrategy(Enum):
- LAZY: str = "LAZY"
24
- BACKGROUND: str = "BACKGROUND"
+ LAZY = "LAZY"
25
+ BACKGROUND = "BACKGROUND"
26
27
@classmethod
28
def _missing_(cls, value: object) -> None:
@@ -37,9 +38,9 @@ def _from_str(cls, refresh_strategy: str) -> RefreshStrategy:
37
38
39
40
class IPTypes(Enum):
- PUBLIC: str = "PRIMARY"
41
- PRIVATE: str = "PRIVATE"
42
- PSC: str = "PSC"
+ PUBLIC = "PRIMARY"
+ PRIVATE = "PRIVATE"
43
+ PSC = "PSC"
44
45
46
0 commit comments