Skip to content

Commit 3b9618b

Browse files
committed
Drop __eq__ on Options
1 parent 3f14f68 commit 3b9618b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

mypy/options.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,6 @@ def snapshot(self) -> object:
222222
del d['per_module_cache']
223223
return d
224224

225-
def __eq__(self, other: object) -> bool:
226-
return isinstance(other, Options) and self.snapshot() == other.snapshot()
227-
228-
def __ne__(self, other: object) -> bool:
229-
return not self == other
230-
231225
def __repr__(self) -> str:
232226
return 'Options({})'.format(pprint.pformat(self.snapshot()))
233227

mypy/test/testargs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_coherence(self) -> None:
2121
_, parsed_options = process_options([], require_targets=False)
2222
# FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg'
2323
options.config_file = parsed_options.config_file
24-
assert_equal(options, parsed_options)
24+
assert_equal(options.snapshot(), parsed_options.snapshot())
2525

2626
def test_executable_inference(self) -> None:
2727
"""Test the --python-executable flag with --python-version"""

0 commit comments

Comments
 (0)