1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

[2051] Docfile Brief Pass

This commit is contained in:
David Sangrey 2023-11-16 16:11:37 -05:00
parent c8edce26e6
commit 62cf621b20
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
2 changed files with 3 additions and 4 deletions

View File

@ -79,7 +79,7 @@ class ClickCounter:
"""
# You need to cast to `int` here to store *as* an `int`, so that
# `config.get_int()` will work for re-loading the value.
config.set('click_counter_count', int(self.click_count.get())) # type: ignore
config.set('click_counter_count', int(self.click_count.get()))
def setup_main_ui(self, parent: tk.Frame) -> tk.Frame:
"""
@ -95,7 +95,7 @@ class ClickCounter:
button = tk.Button(
frame,
text="Count me",
command=lambda: self.click_count.set(str(int(self.click_count.get()) + 1)) # type: ignore
command=lambda: self.click_count.set(str(int(self.click_count.get()) + 1))
)
button.grid(row=current_row)
current_row += 1

View File

@ -44,7 +44,7 @@ class This:
this = This()
class PluginTest(object):
class PluginTest:
"""Class that performs actual tests on bundled modules."""
def __init__(self, directory: str):
@ -83,7 +83,6 @@ class PluginTest(object):
logger.debug(f'timestamp = "{timestamp}", cmdr = "{cmdrname}", system = "{system}", station = "{station}", event = "{event}"') # noqa: E501
self.sqlc.execute('INSERT INTO entries VALUES(?, ?, ?, ?, ?)', (timestamp, cmdrname, system, station, event))
self.sqlconn.commit()
return None
def plugin_start3(plugin_dir: str) -> str: