possible false positive with `use-type-annotations`
Borda opened this issue · 1 comments
Borda commented
We have a method in our TM codebase that has the following comment, and I believe it is fine, but it is flagged by python-use-type-annotations
(using the latest v1.10.0
)
def _filter_kwargs(self, **kwargs: Any) -> Dict[str, Any]:
"""Filter kwargs such that they match the update signature of the metric."""
# filter all parameters based on update signature except those of
# type VAR_POSITIONAL (*args) and VAR_KEYWORD (**kwargs)
asottile commented
this is intentional