Skip to content
Snippets Groups Projects
Commit f2ff55fb authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#101 Linting

parent bfe9cc8f
No related branches found
No related tags found
1 merge request!67#101 & #121 kodetabell-innstillings-popup og db/DB->database i GUI
Pipeline #82540 passed
......@@ -46,13 +46,14 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta):
)
# If parameters are None, launch settings-dialog and generate new table
if size is None and data is None:
# Disabling pylint-error 'Access to member before its definition line'
# Disabling pylint-error
# 'Access to member before its definition line'
# because the variable is defined in subclass.
# pylint: disable=E0203
if self.start_no_of_codes > self.maximum_no_of_codes:
raise ValueError(
"The value of module-constant 'START_NO_OF_CODES' is larger "
"than module-constant 'MAXIMUM_NO_OF_CODES': "
"The value of module-constant 'START_NO_OF_CODES' "
"is larger than module-constant 'MAXIMUM_NO_OF_CODES': "
"{} > {}".format(
self.start_no_of_codes, self.maximum_no_of_codes
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment