From 4b890318fc964fdc1af1afe366166586af51714e Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Thu, 13 Jun 2024 15:08:58 -0300 Subject: [PATCH] Update type hint --- src/palace/manager/sqlalchemy/model/licensing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/palace/manager/sqlalchemy/model/licensing.py b/src/palace/manager/sqlalchemy/model/licensing.py index df7629add..2aaf81831 100644 --- a/src/palace/manager/sqlalchemy/model/licensing.py +++ b/src/palace/manager/sqlalchemy/model/licensing.py @@ -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 ( @@ -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)