Skip to content

Commit 497a12c

Browse files
committed
style: apply black
Signed-off-by: Hiroshi Miura <[email protected]>
1 parent 2d7df4c commit 497a12c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

aqt/archives.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _get_archives_base(self, name, target_packages):
451451

452452
self._parse_update_xmls(update_xmls, target_packages)
453453

454-
def _download_update_xml(self, update_xml_path: str, silent: bool=False) -> Optional[str]:
454+
def _download_update_xml(self, update_xml_path: str, silent: bool = False) -> Optional[str]:
455455
"""Hook for unit test."""
456456
if not Settings.ignore_hash:
457457
try:
@@ -470,7 +470,9 @@ def _download_update_xml(self, update_xml_path: str, silent: bool=False) -> Opti
470470
xml_hash = None
471471
return getUrl(posixpath.join(self.base, update_xml_path), self.timeout, xml_hash)
472472

473-
def _parse_update_xml(self, os_target_folder: str, update_xml_text: str, target_packages: Optional[ModuleToPackage]) -> None:
473+
def _parse_update_xml(
474+
self, os_target_folder: str, update_xml_text: str, target_packages: Optional[ModuleToPackage]
475+
) -> None:
474476
if not target_packages:
475477
target_packages = ModuleToPackage({})
476478
update_xml = Updates.fromstring(self.base, update_xml_text)

aqt/exceptions.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525

2626
class AqtException(Exception):
27-
def __init__(self, *args, suggested_action: Optional[List[str]] = None, should_show_help: bool = False, **kwargs) -> None:
27+
def __init__(
28+
self, *args, suggested_action: Optional[List[str]] = None, should_show_help: bool = False, **kwargs
29+
) -> None:
2830
self.suggested_action: List[str] = suggested_action or []
2931
self.should_show_help: bool = should_show_help or False
3032
super(AqtException, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)