@@ -34,22 +34,22 @@ def __init__(self, name):
34
34
super ().__init__ ()
35
35
36
36
@property
37
- def exists (self ):
37
+ def exists (self ) -> bool :
38
38
"""Test if the service exists"""
39
39
raise NotImplementedError
40
40
41
41
@property
42
- def is_running (self ):
42
+ def is_running (self ) -> bool :
43
43
"""Test if service is running"""
44
44
raise NotImplementedError
45
45
46
46
@property
47
- def is_enabled (self ):
47
+ def is_enabled (self ) -> bool :
48
48
"""Test if service is enabled"""
49
49
raise NotImplementedError
50
50
51
51
@property
52
- def is_valid (self ):
52
+ def is_valid (self ) -> bool :
53
53
"""Test if service is valid
54
54
55
55
This method is only available in the systemd implementation,
@@ -58,7 +58,7 @@ def is_valid(self):
58
58
raise NotImplementedError
59
59
60
60
@property
61
- def is_masked (self ):
61
+ def is_masked (self ) -> bool :
62
62
"""Test if service is masked
63
63
64
64
This method is only available in the systemd implementation,
@@ -67,7 +67,7 @@ def is_masked(self):
67
67
raise NotImplementedError
68
68
69
69
@functools .cached_property
70
- def systemd_properties (self ):
70
+ def systemd_properties (self ) -> dict [ str , str ] :
71
71
"""Properties of the service (unit).
72
72
73
73
Return service properties as a `dict`,
0 commit comments