remove disallow_untyped_defs=False from models.format_control

This commit is contained in:
Maxim Kurnikov 2019-11-14 19:52:34 +03:00
parent ccd2ced9bc
commit f777ac7276
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,5 @@
# The following comment should be removed at some point in the future.
# mypy: strict-optional=False
# mypy: disallow-untyped-defs=False
from pip._vendor.packaging.utils import canonicalize_name
@ -26,12 +25,15 @@ class FormatControl(object):
self.only_binary = only_binary
def __eq__(self, other):
# type: (object) -> bool
return self.__dict__ == other.__dict__
def __ne__(self, other):
# type: (object) -> bool
return not self.__eq__(other)
def __repr__(self):
# type: () -> str
return "{}({}, {})".format(
self.__class__.__name__,
self.no_binary,