Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mypy: Use str in statsd_key.
Steve Howellbee18c70f09c
diff --git a/zerver/lib/utils.py b/zerver/lib/utils.pyindex ff0fb414e83..3e1a3d23e0c 100644--- a/zerver/lib/utils.py+++ b/zerver/lib/utils.py@@ -11,10 +11,7 @@ from django.conf import settingsT = TypeVar('T')-def statsd_key(val: Any, clean_periods: bool=False) -> str:- if not isinstance(val, str):- val = str(val)-+def statsd_key(val: str, clean_periods: bool=False) -> str:if ':' in val:val = val.split(':')[0]val = val.replace('-', "_")