chore: remove redundant casting flask app config into dict (#2564)
This commit is contained in:
parent
e55225e2bc
commit
e352a8ed1b
3 changed files with 5 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, cast
|
||||
from typing import Any
|
||||
|
||||
from flask import current_app
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ class Keyword:
|
|||
self._keyword_processor = self._init_keyword()
|
||||
|
||||
def _init_keyword(self) -> BaseKeyword:
|
||||
config = cast(dict, current_app.config)
|
||||
config = current_app.config
|
||||
keyword_type = config.get('KEYWORD_STORE')
|
||||
|
||||
if not keyword_type:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue