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: Fixes useless-return (PLR1711) #3955

Merged
merged 1 commit into from
Jul 1, 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
3 changes: 0 additions & 3 deletions gui/wxpython/rlisetup/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def _value_for_circle(self, radius):
self.CIR_RL += 1
if not self.CIR_CL % 2:
self.CIR_CL += 1
return

def _circle(self, radius, mask):
"""Create a circle mask"""
Expand Down Expand Up @@ -1132,11 +1131,9 @@ def ShowExtraOptions(self, samtype):

def OnRegionDraw(self, event):
self.RegionDraw(event.GetInt())
return

def OnOverwrite(self, event):
self.overwriteTemp = self.overwriteCheck.GetValue()
return

def OnVectYes(self, event):
"""The user choose to select the vector areas, this function set the
Expand Down
6 changes: 0 additions & 6 deletions imagery/i.atcorr/create_iwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ def plot_filter(values):
plot(response[:, 0], response[:, 1], "ro")
plot(arange(limits[0], limits[1], 2.5), filter_f)

return


def pretty_print(filter_f):
"""
Expand Down Expand Up @@ -327,8 +325,6 @@ def write_cpp(bands, values, sensor, folder):
outfile.write(" break;\n")
outfile.write(" }\n}\n")

return


def main():
"""control function"""
Expand Down Expand Up @@ -391,8 +387,6 @@ def main():
)
print

return


if __name__ == "__main__":
if len(sys.argv) == 1:
Expand Down
4 changes: 0 additions & 4 deletions python/grass/temporal/spatio_temporal_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,6 @@ def print_temporal_topology_relationships(maps1, maps2=None, dbif=None):
if connection_state_changed:
dbif.close()

return


###############################################################################

Expand Down Expand Up @@ -790,8 +788,6 @@ def print_spatio_temporal_topology_relationships(
if connection_state_changed:
dbif.close()

return


###############################################################################

Expand Down
2 changes: 0 additions & 2 deletions scripts/g.extension/g.extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,6 @@ def install_extension_xml(edict):
)
write_xml_extensions(xml_file, tree)

return None


def get_multi_addon_addons_which_install_only_html_man_page():
"""Get multi-addon addons which install only manual html page
Expand Down
2 changes: 0 additions & 2 deletions scripts/r.in.aster/r.in.aster.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ def main():
grass.try_remove(tempfile)
grass.message(_("Done."))

return


def import_aster(proj, srcfile, tempfile, output, band):
# run gdalwarp with selected options (must be in $PATH)
Expand Down
Loading