From 313b55378ed0790b992cfe4fc79c19a349767074 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Mon, 4 Mar 2024 10:02:09 +0100
Subject: [PATCH] minor pylint improvements

---
 .pylintrc                                    | 3 +++
 CHANGELOG.md                                 | 1 +
 satella/__init__.py                          | 2 +-
 satella/coding/overloading.py                | 2 ++
 satella/coding/structures/mixins/hashable.py | 1 +
 5 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.pylintrc b/.pylintrc
index 0f3e65b7..2de1d786 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 2a20b991..e96f8791 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 29a143df..1f0e6ffa 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 05cd3d1d..7a1eb9bd 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 84f89431..5ae8fc2a 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):
-- 
GitLab