mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
CI: add type checking (#10997)
* Set up type checking with mypy. * Make mypy pass. * Use list() instead of sorted().
This commit is contained in:
@@ -347,7 +347,7 @@ RHEV_UNAVAILABLE = 2
|
||||
RHEV_TYPE_OPTS = ['desktop', 'host', 'server']
|
||||
STATE_OPTS = ['absent', 'cd', 'down', 'info', 'ping', 'present', 'restart', 'up']
|
||||
|
||||
msg = []
|
||||
msg: list[str] = []
|
||||
changed = False
|
||||
failed = False
|
||||
|
||||
@@ -1258,7 +1258,7 @@ def setChanged():
|
||||
changed = True
|
||||
|
||||
|
||||
def setMsg(message):
|
||||
def setMsg(message: str) -> None:
|
||||
msg.append(message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user