Skip to content

Commit

Permalink
Update type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Jun 13, 2024
1 parent 943a881 commit 4b89031
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/palace/manager/sqlalchemy/model/licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from sqlalchemy.orm import Mapped, relationship
from sqlalchemy.orm.session import Session
from sqlalchemy.sql.expression import or_
from typing_extensions import Self

from palace.manager.core.exceptions import BasePalaceException
from palace.manager.sqlalchemy.constants import (
Expand Down Expand Up @@ -47,7 +46,7 @@ class LicenseStatus(PythonEnum):
unavailable = "unavailable"

@classmethod
def get(cls, value: str | None) -> Self:
def get(cls, value: str | None) -> LicenseStatus:
if value is None:
return cls.unavailable
return cls.__members__.get(value.lower(), cls.unavailable)
Expand Down

0 comments on commit 4b89031

Please sign in to comment.