Updated Linter Suppression for Existing

This commit is contained in:
David Sangrey committed 2025-10-16 16:34:16 -04:00
1 parent 1f7a2fb4a7
commit 34e73dcfb2
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -2248,7 +2248,7 @@ sys.path: {sys.path}'''
msg = tk.messagebox.askyesno(
title=title, message=message, detail=detail, icon=tkinter.messagebox.ERROR, type=tkinter.messagebox.YESNO,
parent=root
)
) # type: ignore
if msg:
webbrowser.open(
"https://github.com/EDCD/EDMarketConnector/issues/new?"
+1 -1
View File
@@ -705,7 +705,7 @@ class Session:
self.credentials = credentials
self.state = Session.STATE_INIT
self.auth = Auth(self.credentials['cmdr'])
self.auth = Auth(self.credentials['cmdr']) # type: ignore
access_token = self.auth.refresh()
if access_token:
+2 -2
View File
@@ -123,12 +123,12 @@ class Dashboard(FileSystemEventHandler):
if self.observer:
logger.debug('Calling self.observer.stop()')
self.observer.stop()
self.observer.stop() # type: ignore
logger.debug('Done')
if self.observer:
logger.debug('Joining self.observer...')
self.observer.join()
self.observer.join() # type: ignore
logger.debug('Done')
self.observer = None # type: ignore
+1 -1
View File
@@ -209,7 +209,7 @@ if sys.platform == 'win32':
config_home: The home directory path
Returns:
Localized path as string
"""
""" # noqa: D205, D407
if not path:
return path
+1 -1
View File
@@ -28,7 +28,7 @@ def get_arg(call: ast.Call) -> str:
arg = call.args[0]
if isinstance(arg, ast.Constant):
return arg.value
return str(arg.value)
if isinstance(arg, ast.Name):
return f"VARIABLE! CHECK CODE! {arg.id}"
return f"Unknown! {type(arg)=} {ast.dump(arg)} ||| {ast.unparse(arg)}"
+2 -2
View File
@@ -222,7 +222,7 @@ class _Theme:
widget = event.widget
if widget and widget['state'] != tk.DISABLED:
try:
widget.configure(state=tk.ACTIVE)
widget.configure(state=tk.ACTIVE) # type: ignore
except Exception:
logger.exception(f'Failure setting widget active: {widget=}')
@@ -239,7 +239,7 @@ class _Theme:
widget = event.widget
if widget and widget['state'] != tk.DISABLED:
try:
widget.configure(state=tk.NORMAL)
widget.configure(state=tk.NORMAL) # type: ignore
except Exception:
logger.exception(f'Failure setting widget normal: {widget=}')