Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fix W0231: __init__ method from base class is not called (super-init-not-called) #4893

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -665,7 +665,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
Loading