Skip to content

Commit 3fcf261

Browse files
committed
Fix lint errors
1 parent 2da233a commit 3fcf261

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

aqt/commercial.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class QtPackageInfo:
2121

2222

2323
class QtPackageManager:
24-
def __init__(self, arch: str, version: Version, target: str, username: str = None, password: str = None):
24+
def __init__(
25+
self, arch: str, version: Version, target: str, username: Optional[str] = None, password: Optional[str] = None
26+
):
2527
self.arch = arch
2628
self.version = version
2729
self.target = target

aqt/installer.py

-3
Original file line numberDiff line numberDiff line change
@@ -930,13 +930,10 @@ def run_list_qt_commercial(self, args) -> None:
930930

931931
except Exception as e:
932932
self.logger.error(f"Failed to list Qt commercial packages: {e}")
933-
return 1
934933
finally:
935934
# Clean up
936935
Settings.qt_installer_cleanup()
937936

938-
return 0
939-
940937
def _warn_on_deprecated_command(self, old_name: str, new_name: str) -> None:
941938
self.logger.warning(
942939
f"The command '{old_name}' is deprecated and marked for removal in a future version of aqt.\n"

0 commit comments

Comments
 (0)