lint: ignore "circular import" that isn't real
This commit is contained in:
parent
2c96ade33d
commit
cce5c307ee
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Deprecation(db.Model): # type: ignore[name-defined,misc]
|
|||
|
||||
@property
|
||||
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]
|
||||
return model.query.get(self.resource_id) # type: ignore[no-any-return]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue