Skip to content

Commit

Permalink
frontend.shared.resource_lib: Ignore false negatives from pylint
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lmr committed Mar 26, 2013
1 parent 597bc8d commit 818658a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/shared/resource_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ def _fresh_queryset(self):


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)


Expand Down Expand Up @@ -673,6 +675,8 @@ def _entry_from_instance(self, instance):
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)


Expand Down

0 comments on commit 818658a

Please sign in to comment.