Skip to content

Commit

Permalink
server: Removing unnecessary None defaults in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Aug 23, 2024
1 parent c8c8f2b commit d7a3b3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/polar/license_key/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class LicenseKeyRead(Schema):
key: str
display_key: str
status: LicenseKeyStatus
limit_activations: int | None = None
limit_activations: int | None
usage: int
limit_usage: int | None = None
limit_usage: int | None
validations: int
last_validated_at: datetime | None = None
expires_at: datetime | None = None
last_validated_at: datetime | None
expires_at: datetime | None


class LicenseKeyActivationBase(Schema):
Expand All @@ -79,7 +79,7 @@ class LicenseKeyActivationBase(Schema):
label: str
meta: dict[str, Any]
created_at: datetime
modified_at: datetime | None = None
modified_at: datetime | None


class LicenseKeyWithActivations(LicenseKeyRead):
Expand Down

0 comments on commit d7a3b3c

Please sign in to comment.