-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mypy issues with __call_ order on multiple inheritance
- Loading branch information
Showing
10 changed files
with
89 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
from .localized_string import LocalizedString | ||
from pydantic import BaseModel | ||
from ...modelcore import GoogleWalletWithKindModel | ||
from pydantic import Field | ||
|
||
|
||
class LatLongPoint(BaseModel): | ||
class LatLongPoint(GoogleWalletWithKindModel): | ||
""" | ||
see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/LatLongPoint | ||
""" | ||
|
||
kind: str | None = Field( | ||
description="deprecated", | ||
exclude=True, | ||
default="walletobjects#latLongPoint", | ||
) | ||
latitude: float = Field(ge=-90.0, le=90.0) | ||
longitude: float = Field(ge=-180.0, le=180.0) | ||
|
||
|
||
class EventVenue(BaseModel): | ||
""" | ||
see: https://developers.google.com/wallet/tickets/events/rest/v1/eventticketclass#eventvenue | ||
""" | ||
|
||
name: LocalizedString | None = None | ||
address: LocalizedString | None = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .modelbase import GoogleWalletModel | ||
from .modelcore import GoogleWalletModel | ||
from typing import TypedDict | ||
|
||
|
||
|