Addon Manager: Reformat with new Black line length

This commit is contained in:
Chris Hennes
2023-09-02 12:27:25 -05:00
committed by Chris Hennes
parent c989a8506e
commit 89579cff6e
67 changed files with 654 additions and 1233 deletions

View File

@@ -46,9 +46,7 @@ class PersonEditor:
self.dialog.comboBox.addItem(
translate("AddonsInstaller", "Maintainer"), userData="maintainer"
)
self.dialog.comboBox.addItem(
translate("AddonsInstaller", "Author"), userData="author"
)
self.dialog.comboBox.addItem(translate("AddonsInstaller", "Author"), userData="author")
def exec(self) -> Tuple[str, str, str]:
"""Run the dialog, and return a tuple of the person's record type, their name, and their
@@ -63,15 +61,11 @@ class PersonEditor:
)
return "", "", ""
def setup(
self, person_type: str = "maintainer", name: str = "", email: str = ""
) -> None:
def setup(self, person_type: str = "maintainer", name: str = "", email: str = "") -> None:
"""Configure the dialog"""
index = self.dialog.comboBox.findData(person_type)
if index == -1:
FreeCAD.Console.PrintWarning(
f"Internal Error: unrecognized person type {person_type}"
)
FreeCAD.Console.PrintWarning(f"Internal Error: unrecognized person type {person_type}")
index = 0
self.dialog.comboBox.setCurrentIndex(index)
self.dialog.nameLineEdit.setText(name)