Skip to content

Commit 6dc3a39

Browse files
authored
Remove Python 2 logic from functools (#13299)
1 parent da465ed commit 6dc3a39

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mypy/plugins/functools.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def functools_total_ordering_maker_callback(
2222
ctx: mypy.plugin.ClassDefContext, auto_attribs_default: bool = False
2323
) -> bool:
2424
"""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-
2925
comparison_methods = _analyze_class(ctx)
3026
if not comparison_methods:
3127
ctx.api.fail(

0 commit comments

Comments
 (0)