[api.abstract.controller] refactoring: updating 'get_settings' return specification

This commit is contained in:
Vinicius Moreira
2021-11-30 12:25:41 -03:00
parent cc5829308b
commit 459240933a
6 changed files with 7 additions and 7 deletions

View File

@@ -2803,7 +2803,7 @@ class ArchManager(SoftwareManager):
id_=id_,
capitalize_label=capitalize_label)
def get_settings(self, screen_width: int, screen_height: int) -> ViewComponent:
def get_settings(self, screen_width: int, screen_height: int) -> Optional[ViewComponent]:
arch_config = self.configman.get_config()
max_width = floor(screen_width * 0.25)