pylint: ignore access-member-before-definition explicitly

In case of Cell.status property, the code has a good readability,
so it sounds reasonable to ignore access-member-before-definition,
although access-member-before-definition itself is a useful check.

Change-Id: Ic6f2ec42bac41c62265e6b0e744c256007093ce6
This commit is contained in:
Akihiro Motoki 2018-12-09 03:28:50 +09:00
parent 02a0f81f96
commit 86d1826a29
2 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,6 @@ disable=
# "I" Informational noise
locally-disabled,
# "E" Error for important programming issues (likely bugs)
access-member-before-definition,
assignment-from-no-return,
bad-super-call,
import-error,

View File

@ -843,6 +843,7 @@ class Cell(html.HTMLElement):
"""Gets the status for the column based on the cell's data."""
# Deal with status column mechanics based in this cell's data
if hasattr(self, '_status'):
# pylint: disable=access-member-before-definition
return self._status
if self.column.status or \