Skip to content

Commit bbd08f2

Browse files
committed
fixed mypy
1 parent 79ffcdc commit bbd08f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ellar_jwt/module.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ def register_setup(cls) -> ModuleSetup:
5656
def register_setup_factory(
5757
module: t.Type["JWTModule"], config: Config
5858
) -> DynamicModule:
59-
if config.get("JWT_CONFIG"):
60-
schema = JWTConfiguration(
61-
**dict(config.JWT_CONFIG) # type:ignore[arg-type]
62-
)
59+
if config.get("JWT_CONFIG") and isinstance(config.JWT_CONFIG, dict):
60+
schema = JWTConfiguration(**dict(config.JWT_CONFIG))
6361
return DynamicModule(
6462
module,
6563
providers=[

0 commit comments

Comments
 (0)