fix: fix 'no-else-raise' for pylint
This commit is contained in:
parent
4b4d81c4f3
commit
ebd44c55f5
2 changed files with 4 additions and 5 deletions
|
@ -10,7 +10,6 @@ disable=fixme,
|
|||
keyword-arg-before-vararg,
|
||||
missing-function-docstring,
|
||||
missing-module-docstring,
|
||||
no-else-raise,
|
||||
no-member,
|
||||
not-callable,
|
||||
protected-access,
|
||||
|
|
|
@ -1373,10 +1373,10 @@ class Grid: # pylint: disable=too-many-instance-attributes,too-many-public-meth
|
|||
if filterinfo and callable(filterinfo):
|
||||
# filtr = filterinfo
|
||||
raise NotImplementedError
|
||||
else:
|
||||
kwargs["key"] = key
|
||||
kwargs.setdefault("label", self.get_label(key))
|
||||
filtr = self.make_filter(filterinfo or key, **kwargs)
|
||||
|
||||
kwargs["key"] = key
|
||||
kwargs.setdefault("label", self.get_label(key))
|
||||
filtr = self.make_filter(filterinfo or key, **kwargs)
|
||||
|
||||
self.filters[key] = filtr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue