mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-22 17:22:09 +03:00
Updated Linter Suppression for Existing
This commit is contained in:
6 files changed
+8
-8
No files matched your search
@@ -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
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)}"
|
||||
|
||||
@@ -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=}')
|
||||
|
||||
Reference in new issue
Block a user