lint: ignore "circular import" that isn't real

This commit is contained in:
Iain Learmonth 2024-11-10 21:54:56 +00:00
parent 2c96ade33d
commit cce5c307ee

View file

@ -49,7 +49,7 @@ class Deprecation(db.Model): # type: ignore[name-defined,misc]
@property @property
def resource(self) -> "AbstractResource": def resource(self) -> "AbstractResource":
from app.models.mirrors import Proxy from app.models.mirrors import Proxy # pylint: disable=R0401
model = {'Proxy': Proxy}[self.resource_type] model = {'Proxy': Proxy}[self.resource_type]
return model.query.get(self.resource_id) # type: ignore[no-any-return] return model.query.get(self.resource_id) # type: ignore[no-any-return]