chore: Mypy fix **kwargs type (#15823)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-07-28 09:59:20 -07:00
committed by GitHub
parent 3adf8e85cd
commit 671b8f2544
5 changed files with 9 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ def stats_timing(stats_key: str, stats_logger: BaseStatsLogger) -> Iterator[floa
stats_logger.timing(stats_key, now_as_float() - start_ts)
def arghash(args: Any, kwargs: Dict[str, Any]) -> int:
def arghash(args: Any, kwargs: Any) -> int:
"""Simple argument hash with kwargs sorted."""
sorted_args = tuple(
x if hasattr(x, "__repr__") else x for x in [*args, *sorted(kwargs.items())]