Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Sep 29, 2023
1 parent 205e242 commit a005e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/artisanlib/roast_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -5358,5 +5358,6 @@ def __init__(self, parent, aw:'ApplicationWindow') -> None:
self.ui.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Apply)
# hack to assign the Apply button the AcceptRole without losing default system translations
applyButton = self.ui.buttonBox.button(QDialogButtonBox.StandardButton.Apply)
self.ui.buttonBox.removeButton(applyButton)
self.ui.buttonBox.addButton(applyButton.text(), QDialogButtonBox.ButtonRole.AcceptRole)
if applyButton is not None:
self.ui.buttonBox.removeButton(applyButton)
self.ui.buttonBox.addButton(applyButton.text(), QDialogButtonBox.ButtonRole.AcceptRole)
2 changes: 1 addition & 1 deletion src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ enable='''c-extension-no-member,'''

[tool.mypy]
files = ["artisanlib/*.py", "plus/*.py"]
exclude = ['build', 'dist']
exclude = ['build', 'dist', 'uic']
##python_version = "3.7"
check_untyped_defs = true

Expand Down

0 comments on commit a005e81

Please sign in to comment.