*: Add type hints for app init methods

- This is so that the methods will be checked by mypy. This should help identify
any incorrect initialization of components.

- Remove unused self.repos in GitwebApp.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2024-03-09 14:22:14 -05:00
1 parent 3a7dd4e812
commit f9b186e14f
66 files changed
+72 -74

No files matched your search

+3 -3
View File
@@ -24,7 +24,7 @@ class ApacheApp(app_module.App):
_version = 12
def __init__(self):
def __init__(self) -> None:
"""Create components for the app."""
super().__init__()
@@ -61,8 +61,8 @@ class ApacheApp(app_module.App):
daemon = Daemon('daemon-apache', 'apache2')
self.add(daemon)
daemon = RelatedDaemon('related-daemon-apache', 'uwsgi')
self.add(daemon)
related_daemon = RelatedDaemon('related-daemon-apache', 'uwsgi')
self.add(related_daemon)
def setup(self, old_version):
"""Install and configure the app."""