Skip to content

Commit 19b3243

Browse files
committed
Fix lint check
1 parent 6bfd806 commit 19b3243

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fastapi_users_db_dynamodb/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ def get(key: str, default: Any = None) -> Any:
3737
def set(key: str, value: Any) -> None:
3838
if key not in __config_map:
3939
raise KeyError(f"Unknown config key: {key}")
40-
expected_type = type(__config_map[key])
40+
expected_type = type(__config_map[key]) # type: ignore[literal-required]
4141
if not isinstance(value, expected_type):
4242
raise TypeError(
4343
f"Invalid type for '{key}'. Expected {expected_type.__name__}, got {type(value).__name__}."
4444
)
45-
__config_map[key] = value
45+
__config_map[key] = value # type: ignore[literal-required]
4646

4747
return get, set
4848

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tool.mypy]
22
plugins = []
33
ignore_missing_imports = true
4+
check_untyped_defs = true
45

56
[tool.pytest.ini_options]
67
asyncio_mode = "strict"

0 commit comments

Comments
 (0)