diff --git a/.pylintrc b/.pylintrc index 0f3e65b78f5335349187582672ea32ff90ac3b44..2de1d7860254409d5911c6d5b16a76f5a5ce5ce8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -5,3 +5,6 @@ disable= W0603, # global-statement C0103, # invalid-name R0913 # too-many-arguments + +[FORMAT] +max-line-length=110 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a20b99164314237f4652c724a15d9018e8b1519..e96f8791affe91c6fa20107c8e76d7866487f8db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,3 @@ # v2.24.1 +* minor pylint improvements \ No newline at end of file diff --git a/satella/__init__.py b/satella/__init__.py index 29a143df0e9a08461a8706e5fc3fe2f11cca8cd5..1f0e6ffa8292b94db52cf031bb858be792eb23cc 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.24.1a1' +__version__ = '2.24.1a2' diff --git a/satella/coding/overloading.py b/satella/coding/overloading.py index 05cd3d1d5985a614973872ee91a2afad504f054e..7a1eb9bdf4db2c977b148157cdcd411687d3a200 100644 --- a/satella/coding/overloading.py +++ b/satella/coding/overloading.py @@ -40,6 +40,8 @@ class TypeSignature(inspect.Signature): def can_be_called_with_args(self, *args, **kwargs) -> bool: called = self._bind(*args, **kwargs) + + # pylint: disable=protected-access return all(issubclass(self.signature.parameters.get(arg_name, NONEARGS)._annotation, arg_value) for arg_name, arg_value in called.items()) diff --git a/satella/coding/structures/mixins/hashable.py b/satella/coding/structures/mixins/hashable.py index 84f89431786b0e7ec625e1813ea11bac357ca959..5ae8fc2a888b724014c7c8a104bee219cdf694c9 100644 --- a/satella/coding/structures/mixins/hashable.py +++ b/satella/coding/structures/mixins/hashable.py @@ -185,6 +185,7 @@ class OmniHashableMixin(metaclass=ABCMeta): if not isinstance(other, OmniHashableMixin): return super().__eq__(other) + cmpr_by = self._HASH_FIELDS_TO_USE try: if isinstance(cmpr_by, str):