diff --git a/plinth/app.py b/plinth/app.py index 17927270f..c7e74548a 100644 --- a/plinth/app.py +++ b/plinth/app.py @@ -58,7 +58,7 @@ class App: NEEDS_UPDATE = 'needs-update' UP_TO_DATE = 'up-to-date' - def __init__(self): + def __init__(self) -> None: """Build the app by adding components. App may be built just for the purpose for querying. For example, when @@ -71,7 +71,7 @@ class App: if not self.app_id: raise ValueError('Invalid app ID configured') - self.components = collections.OrderedDict() + self.components: dict[str, Component] = collections.OrderedDict() # Add self to global list of apps self._all_apps[self.app_id] = self diff --git a/plinth/modules/apache/__init__.py b/plinth/modules/apache/__init__.py index d5ead948b..ba8bd67af 100644 --- a/plinth/modules/apache/__init__.py +++ b/plinth/modules/apache/__init__.py @@ -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.""" diff --git a/plinth/modules/api/__init__.py b/plinth/modules/api/__init__.py index 153718faf..261d3ec06 100644 --- a/plinth/modules/api/__init__.py +++ b/plinth/modules/api/__init__.py @@ -13,7 +13,7 @@ class ApiApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/avahi/__init__.py b/plinth/modules/avahi/__init__.py index 420b4153b..33c33ea49 100644 --- a/plinth/modules/avahi/__init__.py +++ b/plinth/modules/avahi/__init__.py @@ -38,7 +38,7 @@ class AvahiApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/backups/__init__.py b/plinth/modules/backups/__init__.py index 3cee6898c..1944ce64c 100644 --- a/plinth/modules/backups/__init__.py +++ b/plinth/modules/backups/__init__.py @@ -35,7 +35,7 @@ class BackupsApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/bepasty/__init__.py b/plinth/modules/bepasty/__init__.py index 784650814..09c199a3e 100644 --- a/plinth/modules/bepasty/__init__.py +++ b/plinth/modules/bepasty/__init__.py @@ -50,7 +50,7 @@ class BepastyApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/bind/__init__.py b/plinth/modules/bind/__init__.py index 0f4c6449d..37c52b6df 100644 --- a/plinth/modules/bind/__init__.py +++ b/plinth/modules/bind/__init__.py @@ -32,7 +32,7 @@ class BindApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/calibre/__init__.py b/plinth/modules/calibre/__init__.py index dd5558e05..a04792a88 100644 --- a/plinth/modules/calibre/__init__.py +++ b/plinth/modules/calibre/__init__.py @@ -46,7 +46,7 @@ class CalibreApp(app_module.App): DAEMON = 'calibre-server-freedombox' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/cockpit/__init__.py b/plinth/modules/cockpit/__init__.py index 9bc16d059..7d39c4d55 100644 --- a/plinth/modules/cockpit/__init__.py +++ b/plinth/modules/cockpit/__init__.py @@ -44,7 +44,7 @@ class CockpitApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/config/__init__.py b/plinth/modules/config/__init__.py index 293168da2..8a79e4666 100644 --- a/plinth/modules/config/__init__.py +++ b/plinth/modules/config/__init__.py @@ -35,7 +35,7 @@ class ConfigApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, diff --git a/plinth/modules/coturn/__init__.py b/plinth/modules/coturn/__init__.py index 1eebd4c34..133511ac7 100644 --- a/plinth/modules/coturn/__init__.py +++ b/plinth/modules/coturn/__init__.py @@ -44,7 +44,7 @@ class CoturnApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/datetime/__init__.py b/plinth/modules/datetime/__init__.py index 2a8e7b397..743385c70 100644 --- a/plinth/modules/datetime/__init__.py +++ b/plinth/modules/datetime/__init__.py @@ -60,7 +60,7 @@ class DateTimeApp(app_module.App): return self._time_managed - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() @@ -77,9 +77,9 @@ class DateTimeApp(app_module.App): packages = Packages('packages-datetime', ['systemd-timesyncd']) self.add(packages) - daemon = RelatedDaemon('daemon-datetime-timedated', - 'systemd-timedated') - self.add(daemon) + related_daemon = RelatedDaemon('daemon-datetime-timedated', + 'systemd-timedated') + self.add(related_daemon) if self._is_time_managed(): daemon = Daemon('daemon-datetime', 'systemd-timesyncd') diff --git a/plinth/modules/deluge/__init__.py b/plinth/modules/deluge/__init__.py index 385abe2c5..deec8588e 100644 --- a/plinth/modules/deluge/__init__.py +++ b/plinth/modules/deluge/__init__.py @@ -33,7 +33,7 @@ class DelugeApp(app_module.App): _version = 8 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/diagnostics/__init__.py b/plinth/modules/diagnostics/__init__.py index 16180b5a8..64992bf05 100644 --- a/plinth/modules/diagnostics/__init__.py +++ b/plinth/modules/diagnostics/__init__.py @@ -44,7 +44,7 @@ class DiagnosticsApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, diff --git a/plinth/modules/dynamicdns/__init__.py b/plinth/modules/dynamicdns/__init__.py index 97053fa22..c257e246b 100644 --- a/plinth/modules/dynamicdns/__init__.py +++ b/plinth/modules/dynamicdns/__init__.py @@ -52,7 +52,7 @@ class DynamicDNSApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/ejabberd/__init__.py b/plinth/modules/ejabberd/__init__.py index d4489c7a1..d11fe1983 100644 --- a/plinth/modules/ejabberd/__init__.py +++ b/plinth/modules/ejabberd/__init__.py @@ -52,7 +52,7 @@ class EjabberdApp(app_module.App): _version = 8 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/email/__init__.py b/plinth/modules/email/__init__.py index 947f45d63..5c28538da 100644 --- a/plinth/modules/email/__init__.py +++ b/plinth/modules/email/__init__.py @@ -55,7 +55,7 @@ class EmailApp(plinth.app.App): _version = 4 - def __init__(self): + def __init__(self) -> None: """Initialize the email app.""" super().__init__() diff --git a/plinth/modules/firewall/__init__.py b/plinth/modules/firewall/__init__.py index 3cd45ea7c..9de569029 100644 --- a/plinth/modules/firewall/__init__.py +++ b/plinth/modules/firewall/__init__.py @@ -53,7 +53,7 @@ class FirewallApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/first_boot/__init__.py b/plinth/modules/first_boot/__init__.py index a608f569d..bf3877710 100644 --- a/plinth/modules/first_boot/__init__.py +++ b/plinth/modules/first_boot/__init__.py @@ -39,7 +39,7 @@ class FirstBootApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/gitweb/__init__.py b/plinth/modules/gitweb/__init__.py index 3d8599217..78c34ecf5 100644 --- a/plinth/modules/gitweb/__init__.py +++ b/plinth/modules/gitweb/__init__.py @@ -38,14 +38,12 @@ class GitwebApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() groups = {'git-access': _('Read-write access to Git repositories')} - self.repos = [] - info = app_module.Info(app_id=self.app_id, version=self._version, name=_('Gitweb'), icon_filename='gitweb', short_description=_('Simple Git Hosting'), diff --git a/plinth/modules/help/__init__.py b/plinth/modules/help/__init__.py index 0acfa765f..e634df881 100644 --- a/plinth/modules/help/__init__.py +++ b/plinth/modules/help/__init__.py @@ -22,7 +22,7 @@ class HelpApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/i2p/__init__.py b/plinth/modules/i2p/__init__.py index b9f94f91f..acd89bcdf 100644 --- a/plinth/modules/i2p/__init__.py +++ b/plinth/modules/i2p/__init__.py @@ -42,7 +42,7 @@ class I2PApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/ikiwiki/__init__.py b/plinth/modules/ikiwiki/__init__.py index 3c81712f9..3d498fdea 100644 --- a/plinth/modules/ikiwiki/__init__.py +++ b/plinth/modules/ikiwiki/__init__.py @@ -37,7 +37,7 @@ class IkiwikiApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/infinoted/__init__.py b/plinth/modules/infinoted/__init__.py index aa0b6f884..00f98e69c 100644 --- a/plinth/modules/infinoted/__init__.py +++ b/plinth/modules/infinoted/__init__.py @@ -33,7 +33,7 @@ class InfinotedApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/janus/__init__.py b/plinth/modules/janus/__init__.py index 74428d3cd..3c4dafac2 100644 --- a/plinth/modules/janus/__init__.py +++ b/plinth/modules/janus/__init__.py @@ -35,7 +35,7 @@ class JanusApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/jsxc/__init__.py b/plinth/modules/jsxc/__init__.py index 39194eef4..2f66bdcd8 100644 --- a/plinth/modules/jsxc/__init__.py +++ b/plinth/modules/jsxc/__init__.py @@ -30,7 +30,7 @@ class JSXCApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/kiwix/__init__.py b/plinth/modules/kiwix/__init__.py index 012ef534b..eaa439a12 100644 --- a/plinth/modules/kiwix/__init__.py +++ b/plinth/modules/kiwix/__init__.py @@ -46,7 +46,7 @@ class KiwixApp(app_module.App): DAEMON = 'kiwix-server-freedombox' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/letsencrypt/__init__.py b/plinth/modules/letsencrypt/__init__.py index 7098690a5..ab42b18f6 100644 --- a/plinth/modules/letsencrypt/__init__.py +++ b/plinth/modules/letsencrypt/__init__.py @@ -51,7 +51,7 @@ class LetsEncryptApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/matrixsynapse/__init__.py b/plinth/modules/matrixsynapse/__init__.py index 9078111d5..dc1292081 100644 --- a/plinth/modules/matrixsynapse/__init__.py +++ b/plinth/modules/matrixsynapse/__init__.py @@ -46,7 +46,7 @@ class MatrixSynapseApp(app_module.App): _version = 10 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/mediawiki/__init__.py b/plinth/modules/mediawiki/__init__.py index 1bec60eea..ab1802578 100644 --- a/plinth/modules/mediawiki/__init__.py +++ b/plinth/modules/mediawiki/__init__.py @@ -42,7 +42,7 @@ class MediaWikiApp(app_module.App): _version = 12 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() self._private_mode = True diff --git a/plinth/modules/minetest/__init__.py b/plinth/modules/minetest/__init__.py index e3f44c204..fe08ad228 100644 --- a/plinth/modules/minetest/__init__.py +++ b/plinth/modules/minetest/__init__.py @@ -48,7 +48,7 @@ class MinetestApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/minidlna/__init__.py b/plinth/modules/minidlna/__init__.py index 6cc2c6a1b..edf97e245 100644 --- a/plinth/modules/minidlna/__init__.py +++ b/plinth/modules/minidlna/__init__.py @@ -37,7 +37,7 @@ class MiniDLNAApp(app_module.App): _version = 5 - def __init__(self): + def __init__(self) -> None: """Initialize the app components.""" super().__init__() diff --git a/plinth/modules/mumble/__init__.py b/plinth/modules/mumble/__init__.py index b18ce5d4d..e43f26be7 100644 --- a/plinth/modules/mumble/__init__.py +++ b/plinth/modules/mumble/__init__.py @@ -37,7 +37,7 @@ class MumbleApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/names/__init__.py b/plinth/modules/names/__init__.py index f06913e77..e6cf29247 100644 --- a/plinth/modules/names/__init__.py +++ b/plinth/modules/names/__init__.py @@ -36,7 +36,7 @@ class NamesApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, diff --git a/plinth/modules/networks/__init__.py b/plinth/modules/networks/__init__.py index d231b832e..e793dddb0 100644 --- a/plinth/modules/networks/__init__.py +++ b/plinth/modules/networks/__init__.py @@ -50,7 +50,7 @@ class NetworksApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/openvpn/__init__.py b/plinth/modules/openvpn/__init__.py index 542975692..5a41ea820 100644 --- a/plinth/modules/openvpn/__init__.py +++ b/plinth/modules/openvpn/__init__.py @@ -36,7 +36,7 @@ class OpenVPNApp(app_module.App): _version = 5 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/pagekite/__init__.py b/plinth/modules/pagekite/__init__.py index c9df15ec2..29e6b313f 100644 --- a/plinth/modules/pagekite/__init__.py +++ b/plinth/modules/pagekite/__init__.py @@ -50,7 +50,7 @@ class PagekiteApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/performance/__init__.py b/plinth/modules/performance/__init__.py index 0d79fee77..4b681e1ec 100644 --- a/plinth/modules/performance/__init__.py +++ b/plinth/modules/performance/__init__.py @@ -32,7 +32,7 @@ class PerformanceApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/power/__init__.py b/plinth/modules/power/__init__.py index 60ae0dcdc..f80a936bd 100644 --- a/plinth/modules/power/__init__.py +++ b/plinth/modules/power/__init__.py @@ -23,7 +23,7 @@ class PowerApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/privacy/__init__.py b/plinth/modules/privacy/__init__.py index 742c8758c..56170c12e 100644 --- a/plinth/modules/privacy/__init__.py +++ b/plinth/modules/privacy/__init__.py @@ -24,7 +24,7 @@ class PrivacyApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/privoxy/__init__.py b/plinth/modules/privoxy/__init__.py index 364b11e52..72f83ea22 100644 --- a/plinth/modules/privoxy/__init__.py +++ b/plinth/modules/privoxy/__init__.py @@ -44,7 +44,7 @@ class PrivoxyApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/quassel/__init__.py b/plinth/modules/quassel/__init__.py index b6bcc06dc..ed59be865 100644 --- a/plinth/modules/quassel/__init__.py +++ b/plinth/modules/quassel/__init__.py @@ -43,7 +43,7 @@ class QuasselApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/radicale/__init__.py b/plinth/modules/radicale/__init__.py index c2b72ff79..70c7cdf2c 100644 --- a/plinth/modules/radicale/__init__.py +++ b/plinth/modules/radicale/__init__.py @@ -45,7 +45,7 @@ class RadicaleApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/roundcube/__init__.py b/plinth/modules/roundcube/__init__.py index fbcf2f018..0268208ff 100644 --- a/plinth/modules/roundcube/__init__.py +++ b/plinth/modules/roundcube/__init__.py @@ -42,7 +42,7 @@ class RoundcubeApp(app_module.App): _version = 4 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/rssbridge/__init__.py b/plinth/modules/rssbridge/__init__.py index 49520a7a0..7126b5ac3 100644 --- a/plinth/modules/rssbridge/__init__.py +++ b/plinth/modules/rssbridge/__init__.py @@ -39,7 +39,7 @@ class RSSBridgeApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/samba/__init__.py b/plinth/modules/samba/__init__.py index ef2bee768..345e3ce6b 100644 --- a/plinth/modules/samba/__init__.py +++ b/plinth/modules/samba/__init__.py @@ -43,7 +43,7 @@ class SambaApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/searx/__init__.py b/plinth/modules/searx/__init__.py index 72e6a851d..f81e3375f 100644 --- a/plinth/modules/searx/__init__.py +++ b/plinth/modules/searx/__init__.py @@ -31,7 +31,7 @@ class SearxApp(app_module.App): _version = 6 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/security/__init__.py b/plinth/modules/security/__init__.py index ecaf38555..a9effe9b9 100644 --- a/plinth/modules/security/__init__.py +++ b/plinth/modules/security/__init__.py @@ -27,7 +27,7 @@ class SecurityApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/shaarli/__init__.py b/plinth/modules/shaarli/__init__.py index a6db3aa60..4559f2613 100644 --- a/plinth/modules/shaarli/__init__.py +++ b/plinth/modules/shaarli/__init__.py @@ -28,7 +28,7 @@ class ShaarliApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/shadowsocks/__init__.py b/plinth/modules/shadowsocks/__init__.py index 9707a87eb..57f26d4cb 100644 --- a/plinth/modules/shadowsocks/__init__.py +++ b/plinth/modules/shadowsocks/__init__.py @@ -42,7 +42,7 @@ class ShadowsocksApp(app_module.App): DAEMON = 'shadowsocks-libev-local@freedombox' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/shadowsocksserver/__init__.py b/plinth/modules/shadowsocksserver/__init__.py index 01c237a0b..f574ca4e1 100644 --- a/plinth/modules/shadowsocksserver/__init__.py +++ b/plinth/modules/shadowsocksserver/__init__.py @@ -39,7 +39,7 @@ class ShadowsocksServerApp(app_module.App): DAEMON = 'shadowsocks-libev-server@fbxserver' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/sharing/__init__.py b/plinth/modules/sharing/__init__.py index 0d43274cc..e6c1e4c5d 100644 --- a/plinth/modules/sharing/__init__.py +++ b/plinth/modules/sharing/__init__.py @@ -27,7 +27,7 @@ class SharingApp(app_module.App): _version = 3 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, diff --git a/plinth/modules/snapshot/__init__.py b/plinth/modules/snapshot/__init__.py index 9c281aa9b..5e1c215e7 100644 --- a/plinth/modules/snapshot/__init__.py +++ b/plinth/modules/snapshot/__init__.py @@ -42,7 +42,7 @@ class SnapshotApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/ssh/__init__.py b/plinth/modules/ssh/__init__.py index f4144e619..d4a8438db 100644 --- a/plinth/modules/ssh/__init__.py +++ b/plinth/modules/ssh/__init__.py @@ -33,7 +33,7 @@ class SSHApp(app_module.App): _version = 4 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/sso/__init__.py b/plinth/modules/sso/__init__.py index 42753e7b3..20782d462 100644 --- a/plinth/modules/sso/__init__.py +++ b/plinth/modules/sso/__init__.py @@ -17,7 +17,7 @@ class SSOApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/storage/__init__.py b/plinth/modules/storage/__init__.py index 71cfce75e..4f7034193 100644 --- a/plinth/modules/storage/__init__.py +++ b/plinth/modules/storage/__init__.py @@ -37,7 +37,7 @@ class StorageApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/syncthing/__init__.py b/plinth/modules/syncthing/__init__.py index 2d18a525b..4c11317a6 100644 --- a/plinth/modules/syncthing/__init__.py +++ b/plinth/modules/syncthing/__init__.py @@ -47,7 +47,7 @@ class SyncthingApp(app_module.App): DAEMON = 'syncthing@syncthing' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/tor/__init__.py b/plinth/modules/tor/__init__.py index 541ff9e92..d72781b7b 100644 --- a/plinth/modules/tor/__init__.py +++ b/plinth/modules/tor/__init__.py @@ -53,7 +53,7 @@ class TorApp(app_module.App): _version = 7 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/torproxy/__init__.py b/plinth/modules/torproxy/__init__.py index 6e805bb7e..289be5fb6 100644 --- a/plinth/modules/torproxy/__init__.py +++ b/plinth/modules/torproxy/__init__.py @@ -47,7 +47,7 @@ class TorProxyApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/transmission/__init__.py b/plinth/modules/transmission/__init__.py index 5ecd1faad..4ad655571 100644 --- a/plinth/modules/transmission/__init__.py +++ b/plinth/modules/transmission/__init__.py @@ -62,7 +62,7 @@ class TransmissionApp(app_module.App): DAEMON = 'transmission-daemon' - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/ttrss/__init__.py b/plinth/modules/ttrss/__init__.py index 9445fcf67..de9f53f3a 100644 --- a/plinth/modules/ttrss/__init__.py +++ b/plinth/modules/ttrss/__init__.py @@ -40,7 +40,7 @@ class TTRSSApp(app_module.App): _version = 6 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/upgrades/__init__.py b/plinth/modules/upgrades/__init__.py index 9685ce5a6..82279d3f1 100644 --- a/plinth/modules/upgrades/__init__.py +++ b/plinth/modules/upgrades/__init__.py @@ -57,7 +57,7 @@ class UpgradesApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/users/__init__.py b/plinth/modules/users/__init__.py index b97bf28a0..c9774b405 100644 --- a/plinth/modules/users/__init__.py +++ b/plinth/modules/users/__init__.py @@ -50,7 +50,7 @@ class UsersApp(app_module.App): can_be_disabled = False - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/wireguard/__init__.py b/plinth/modules/wireguard/__init__.py index 49297e1e4..043db2aba 100644 --- a/plinth/modules/wireguard/__init__.py +++ b/plinth/modules/wireguard/__init__.py @@ -39,7 +39,7 @@ class WireguardApp(app_module.App): _version = 1 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/wordpress/__init__.py b/plinth/modules/wordpress/__init__.py index 668e2c9c9..91d24de24 100644 --- a/plinth/modules/wordpress/__init__.py +++ b/plinth/modules/wordpress/__init__.py @@ -45,7 +45,7 @@ class WordPressApp(app_module.App): _version = 4 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__() diff --git a/plinth/modules/zoph/__init__.py b/plinth/modules/zoph/__init__.py index 3f6297c19..b5bbd75f0 100644 --- a/plinth/modules/zoph/__init__.py +++ b/plinth/modules/zoph/__init__.py @@ -46,7 +46,7 @@ class ZophApp(app_module.App): _version = 2 - def __init__(self): + def __init__(self) -> None: """Create components for the app.""" super().__init__()