Skip to content

Commit

Permalink
Fix lint error related to enums
Browse files Browse the repository at this point in the history
From latest mypy, enum members can't be annotated anymore:
https://mypy.readthedocs.io/en/stable/changelog.html#change-to-enum-membership-semantics
  • Loading branch information
rhatgadkar-goog committed Jan 6, 2025
1 parent 9ca0ff8 commit 8aca793
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions google/cloud/alloydb/connector/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class IPTypes(Enum):
Enum for specifying IP type to connect to AlloyDB with.
"""

PUBLIC: str = "PUBLIC"
PRIVATE: str = "PRIVATE"
PSC: str = "PSC"
PUBLIC = "PUBLIC"
PRIVATE = "PRIVATE"
PSC = "PSC"

@classmethod
def _missing_(cls, value: object) -> None:
Expand All @@ -39,8 +39,8 @@ class RefreshStrategy(Enum):
Enum for specifying refresh strategy to connect to AlloyDB with.
"""

LAZY: str = "LAZY"
BACKGROUND: str = "BACKGROUND"
LAZY = "LAZY"
BACKGROUND = "BACKGROUND"

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

0 comments on commit 8aca793

Please sign in to comment.