PLE1520
false positive when using singledispatchmethod
with staticmethod
#10619
Labels
bug
Something isn't working
Ruff version: ruff 0.3.4.
Python version: Python 3.12.2.
Code to reproduce a bug:
Command invoked to lint the code:
ruff check --isolated --preview --select=PL main.py
.Running this code outputs
84
. However, if you replace@singledispatchmethod
with@singledispatch
as Ruff suggests, and then run the code, you will get an error:Python docs on
singledispatchmethod
states:The text was updated successfully, but these errors were encountered: