Closed svaningelgem closed 1 year ago
Thanks, yes this is a known issue. #12 discusses the same topic with mypy
.
It can be suppressed with configuration, or use register
. Static analyzers presumably just look for @overload
textually.
Closing as a duplicate of #12.
Hi,
I am trying to use multimethod in this way:
However, when running this through
flake8
(withflake8-annotations
installed), I'm getting the following error:Is this something that should be resolved in this library, or is this something I should report to
flake8-annotations
? Not very sure... So I'm posting it here because it looks likeflake8-annotations
already has support for overloaded operators.FYI, changing it into
.register
makes the fault go away: