Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proper type hints for @metric_scope decorator to work nicely with mypy
When using @metric_scope on a typed function, mypy produces this kind of error: error: Untyped decorator makes function "handler" untyped This fix avoid this error and will let people using typehint now having those kind of error messages. See https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators
- Loading branch information