Skip to content

Commit

Permalink
style: Fix W0231: __init__ method from base class is not called (supe…
Browse files Browse the repository at this point in the history
…r-init-not-called) (OSGeo#4893)
  • Loading branch information
echoix committed Dec 31, 2024
1 parent 37c59a6 commit 4f7928d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions gui/wxpython/gcp/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ def __init__(
Map=None,
lmgr=None,
):
# pylint: disable=super-init-not-called; See InitMapDisplay()
self.grwiz = grwiz # GR Wizard
self._giface = giface

Expand Down
1 change: 1 addition & 0 deletions gui/wxpython/image2target/ii2t_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,7 @@ def __init__(
Map=None,
lmgr=None,
):
# pylint: disable=super-init-not-called; See InitMapDisplay()
self.grwiz = grwiz # GR Wizard
self._giface = giface

Expand Down
1 change: 1 addition & 0 deletions gui/wxpython/photo2image/ip2i_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def __init__(
lmgr=None,
camera=None,
):
# pylint: disable=super-init-not-called; See InitMapDisplay()
self.grwiz = grwiz # GR Wizard
self._giface = giface

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,6 @@ disable = [
"W0221", # (arguments-differ)
"W0222", # Signature differs from %s %r method (signature-differs)
"W0223", # Method %r is abstract in class %r but is not overridden in child class %r (abstract-method)
"W0231", # __init__ method from base class %r is not called (super-init-not-called)
"W0237", # (arguments-renamed)
"W0401", # Wildcard import %s (wildcard-import)
"W0404", # Reimport %r (imported line %s) (reimported)
Expand Down
1 change: 1 addition & 0 deletions python/grass/imaging/images2swf.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ class SetBackgroundTag(ControlTag):
"""Set the color in 0-255, or 0-1 (if floats given)."""

def __init__(self, *rgb):
super().__init__()
self.tagtype = 9
if len(rgb) == 1:
rgb = rgb[0]
Expand Down

0 comments on commit 4f7928d

Please sign in to comment.