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

Remove override decorator #948

Merged
merged 1 commit into from
Jul 18, 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
7 changes: 0 additions & 7 deletions QgisModelBaker/gui/panel/gpkg_config_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@

from qgis.PyQt.QtGui import QValidator

# Available in typing module from v3.12 on
from typing_extensions import override

from QgisModelBaker.libs.modelbaker.utils.globals import DbActionType
from QgisModelBaker.libs.modelbaker.utils.qt_utils import (
make_file_selector,
Expand Down Expand Up @@ -63,7 +60,6 @@ def __init__(self, parent, db_action_type):

self.gpkg_file_line_edit.textChanged.connect(self.notify_fields_modified)

@override
def _show_panel(self):
if (
self._db_action_type == DbActionType.GENERATE
Expand Down Expand Up @@ -98,16 +94,13 @@ def _show_panel(self):
self.gpkg_file_line_edit.textChanged.emit(self.gpkg_file_line_edit.text())
self.gpkg_file_browse_button.clicked.connect(file_selector)

@override
def get_fields(self, configuration):
configuration.dbfile = self.gpkg_file_line_edit.text().strip()
configuration.dbschema = None

@override
def set_fields(self, configuration):
self.gpkg_file_line_edit.setText(configuration.dbfile)

@override
def is_valid(self):
result = False
message = ""
Expand Down
7 changes: 0 additions & 7 deletions QgisModelBaker/gui/panel/mssql_config_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"""
import logging

# Available in typing module from v3.12 on
from typing_extensions import override

from QgisModelBaker.libs.modelbaker.utils.globals import DbActionType
from QgisModelBaker.utils import gui_utils
from QgisModelBaker.utils.mssql_utils import get_odbc_drivers
Expand Down Expand Up @@ -68,7 +65,6 @@ def __init__(self, parent, db_action_type):
self.mssql_user_line_edit.textChanged.connect(self.notify_fields_modified)
self.mssql_password_line_edit.textChanged.connect(self.notify_fields_modified)

@override
def _show_panel(self):
if self._db_action_type == DbActionType.GENERATE:
self.mssql_schema_line_edit.setPlaceholderText(
Expand All @@ -85,7 +81,6 @@ def _show_panel(self):
else:
logging.error(f"Unknown action type: {self._db_action_type}")

@override
def get_fields(self, configuration):
configuration.dbhost = self.mssql_host_line_edit.text().strip()
configuration.dbinstance = self.mssql_instance_line_edit.text().strip()
Expand All @@ -96,7 +91,6 @@ def get_fields(self, configuration):
configuration.dbpwd = self.mssql_password_line_edit.text()
configuration.db_odbc_driver = self.mssql_odbc_driver.currentText()

@override
def set_fields(self, configuration):
self.mssql_host_line_edit.setText(configuration.dbhost)
self.mssql_instance_line_edit.setText(configuration.dbinstance)
Expand All @@ -110,7 +104,6 @@ def set_fields(self, configuration):
if index != -1:
self.mssql_odbc_driver.setCurrentIndex(index)

@override
def is_valid(self):
result = False
message = ""
Expand Down
7 changes: 0 additions & 7 deletions QgisModelBaker/gui/panel/pg_config_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

from qgis.PyQt.QtCore import Qt, QThread, QTimer

# Available in typing module from v3.12 on
from typing_extensions import override

import QgisModelBaker.libs.modelbaker.utils.db_utils as db_utils
from QgisModelBaker.libs.modelbaker.iliwrapper.globals import DbIliMode
from QgisModelBaker.libs.modelbaker.iliwrapper.ili2dbconfig import (
Expand Down Expand Up @@ -185,7 +182,6 @@ def __del__(self):
except RuntimeError:
pass

@override
def _show_panel(self):

self._fill_schema_combo_box()
Expand All @@ -204,7 +200,6 @@ def _show_panel(self):
else:
logging.error(f"Unknown action type: {self._db_action_type}")

@override
def get_fields(self, configuration):

configuration.dbservice = self.pg_service_combo_box.currentData()
Expand All @@ -220,7 +215,6 @@ def get_fields(self, configuration):

configuration.db_use_super_login = self.pg_use_super_login.isChecked()

@override
def set_fields(self, configuration):

service_config, error = db_utils.get_service_config(configuration.dbservice)
Expand Down Expand Up @@ -317,7 +311,6 @@ def set_fields(self, configuration):
self.pg_auth_settings.setConfigId(configuration.dbauthid)
self.pg_use_super_login.setChecked(configuration.db_use_super_login)

@override
def is_valid(self):
result = False
message = ""
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
psycopg2>=2.7.4
typing-extensions>=4.4.0
pytest
pyodbc
pyyaml
Expand Down