diff --git a/.flake8 b/.flake8 index 0f8b1b8e2c9..fa0d553e0a7 100644 --- a/.flake8 +++ b/.flake8 @@ -29,7 +29,6 @@ per-file-ignores = gui/wxpython/animation/g.gui.animation.py: E501 gui/wxpython/tplot/frame.py: F841, E722 gui/wxpython/tplot/g.gui.tplot.py: E501 - gui/wxpython/iclass/digit.py: F405, F403 gui/wxpython/iclass/frame.py: F405, F403 gui/wxpython/iclass/g.gui.iclass.py: E501 gui/wxpython/iclass/statistics.py: F841, F405, F403 diff --git a/gui/wxpython/iclass/digit.py b/gui/wxpython/iclass/digit.py index 7442c24ab5d..9b9356cee02 100644 --- a/gui/wxpython/iclass/digit.py +++ b/gui/wxpython/iclass/digit.py @@ -17,16 +17,29 @@ """ import wx - +from core.gcmd import GWarning from vdigit.mapwindow import VDigitWindow from vdigit.wxdigit import IVDigit -from vdigit.wxdisplay import DisplayDriver, TYPE_AREA -from core.gcmd import GWarning +from vdigit.wxdisplay import TYPE_AREA, DisplayDriver try: - from grass.lib.gis import G_verbose, G_set_verbose - from grass.lib.vector import * - from grass.lib.vedit import * + from ctypes import pointer + + from grass.lib.gis import G_set_verbose, G_verbose + from grass.lib.vector import ( + Map_info, + Vect_build, + Vect_close, + Vect_copy_map_lines, + Vect_get_area_cat, + Vect_get_num_lines, + Vect_is_3d, + Vect_open_new, + Vect_open_tmp_new, + Vect_open_tmp_update, + Vect_open_update, + ) + from grass.lib.vedit import TYPE_CENTROIDIN, Vedit_delete_areas_cat except ImportError: pass