We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da465ed commit 6dc3a39Copy full SHA for 6dc3a39
mypy/plugins/functools.py
@@ -22,10 +22,6 @@ def functools_total_ordering_maker_callback(
22
ctx: mypy.plugin.ClassDefContext, auto_attribs_default: bool = False
23
) -> bool:
24
"""Add dunder methods to classes decorated with functools.total_ordering."""
25
- if ctx.api.options.python_version < (3,):
26
- # This plugin is not supported in Python 2 mode (it's a no-op).
27
- return True
28
-
29
comparison_methods = _analyze_class(ctx)
30
if not comparison_methods:
31
ctx.api.fail(
0 commit comments