Skip to content

Commit

Permalink
chore: remove type annotations for Enums (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Jan 7, 2025
1 parent 7eb7af3 commit 3b66c5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions google/cloud/sql/connector/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
from google.cloud.sql.connector.exceptions import IncompatibleDriverError


# TODO: Replace Enum with StrEnum when Python 3.11 is minimum supported version
class RefreshStrategy(Enum):
LAZY: str = "LAZY"
BACKGROUND: str = "BACKGROUND"
LAZY = "LAZY"
BACKGROUND = "BACKGROUND"

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


class IPTypes(Enum):
PUBLIC: str = "PRIMARY"
PRIVATE: str = "PRIVATE"
PSC: str = "PSC"
PUBLIC = "PRIMARY"
PRIVATE = "PRIVATE"
PSC = "PSC"

@classmethod
def _missing_(cls, value: object) -> None:
Expand Down

0 comments on commit 3b66c5a

Please sign in to comment.