diff --git a/docs/examples/click_counter/load.py b/docs/examples/click_counter/load.py index 70c24f53..0c65fc29 100644 --- a/docs/examples/click_counter/load.py +++ b/docs/examples/click_counter/load.py @@ -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 diff --git a/docs/examples/plugintest/load.py b/docs/examples/plugintest/load.py index 314eef19..4aca1689 100644 --- a/docs/examples/plugintest/load.py +++ b/docs/examples/plugintest/load.py @@ -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: