Skip to content

Commit

Permalink
Techdebt: MyPy DynamoDB v20111205 (#5799)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Dec 22, 2022
1 parent fb0a4d6 commit 5920d1a
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 91 deletions.
7 changes: 5 additions & 2 deletions moto/dynamodb_v20111205/comparisons.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from typing import Callable, Any


# TODO add tests for all of these
COMPARISON_FUNCS = {
"EQ": lambda item_value, test_value: item_value == test_value,
Expand All @@ -18,5 +21,5 @@
}


def get_comparison_func(range_comparison):
return COMPARISON_FUNCS.get(range_comparison)
def get_comparison_func(range_comparison: str) -> Callable[..., Any]:
return COMPARISON_FUNCS.get(range_comparison) # type: ignore[return-value]
Loading

0 comments on commit 5920d1a

Please sign in to comment.