Here entry_class is callable by the time it is used, due
to some hackery that is probably too hard to fix right
now. So make pylint ignore the error, so we have more
useful pylint reports.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 frontend/shared/resource_lib.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frontend/shared/resource_lib.py b/frontend/shared/resource_lib.py
index b251f52..05d07df 100644
--- a/frontend/shared/resource_lib.py
+++ b/frontend/shared/resource_lib.py
@@ -410,6 +410,8 @@ class Collection(Resource):
 
 
     def _entry_from_instance(self, instance):
+        # entry_class is actually turned into a callable, so this is OK
+        # pylint: disable=E1102
         return self.entry_class(self._request, instance)
 
 
@@ -673,6 +675,8 @@ class RelationshipCollection(Collection):
         unfixed_entry = self.unfixed_class(self._request, instance)
         entries = {self.fixed_name: self.fixed_entry,
                    self.unfixed_name: unfixed_entry}
+        # entry_class is actually turned into a callable, so this is OK
+        # pylint: disable=E1102
         return self.entry_class(**entries)
 
 
-- 
1.8.1.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to