diff --git a/satella/__init__.py b/satella/__init__.py index fd3c76e6ed3c45a62101af6a2b0d0d8e9d648398..265ec16a287bac6a0672bb9d403d240a0c2b3aae 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.24.1a6' +__version__ = '2.24.1a7' diff --git a/satella/coding/overloading.py b/satella/coding/overloading.py index 134aa63a897551c540a1440453e9892a567717ec..fb8fdbed35563b4b208dcd2895df966d70d5790a 100644 --- a/satella/coding/overloading.py +++ b/satella/coding/overloading.py @@ -35,14 +35,15 @@ class TypeSignature(inspect.Signature): You can compare signatures: - >>> def a(a: object): + >>> def a(y: object): >>> pass - >>> def b(a: int): + >>> def b(y: int): >>> pass >>> TypeSignature.from_fun(a) < TypeSignature(b) """ __slots__ = () + # pylint: disable=protected-access def __init__(self, t_sign: inspect.Signature): """ :param t_sign: a inspect.Signature @@ -150,7 +151,7 @@ class overload: for sign, fun in self.type_signatures_to_functions.items(): if sign.matches(*args, **kwargs): matching.append((sign, fun)) - matching.sort() + matching.sort() # This sorting should result in most precise class at the end of the list if not matching: raise TypeError('No matching entries!') else: