Skip to content

Commit 3b66c5a

Browse files
chore: remove type annotations for Enums (#1219)
1 parent 7eb7af3 commit 3b66c5a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

google/cloud/sql/connector/enums.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
from google.cloud.sql.connector.exceptions import IncompatibleDriverError
2020

2121

22+
# TODO: Replace Enum with StrEnum when Python 3.11 is minimum supported version
2223
class RefreshStrategy(Enum):
23-
LAZY: str = "LAZY"
24-
BACKGROUND: str = "BACKGROUND"
24+
LAZY = "LAZY"
25+
BACKGROUND = "BACKGROUND"
2526

2627
@classmethod
2728
def _missing_(cls, value: object) -> None:
@@ -37,9 +38,9 @@ def _from_str(cls, refresh_strategy: str) -> RefreshStrategy:
3738

3839

3940
class IPTypes(Enum):
40-
PUBLIC: str = "PRIMARY"
41-
PRIVATE: str = "PRIVATE"
42-
PSC: str = "PSC"
41+
PUBLIC = "PRIMARY"
42+
PRIVATE = "PRIVATE"
43+
PSC = "PSC"
4344

4445
@classmethod
4546
def _missing_(cls, value: object) -> None:

0 commit comments

Comments
 (0)