diff --git a/plugins/module_utils/generic.py b/plugins/module_utils/generic.py index 1f8e0f5..79fa21e 100644 --- a/plugins/module_utils/generic.py +++ b/plugins/module_utils/generic.py @@ -37,9 +37,7 @@ class _Type(type): else: individual[key] = value if len(virtual) != 0 and virtfunc is None: # pragma: nocover - raise TypeError( - "Virtual funcs defined, but no func to generate them defined" - ) + raise TypeError("Virtual funcs defined, but no func to generate them defined") special["_attr"] = tuple(virtual + tuple(individual.keys())) special["_vfunc"] = virtfunc special["_virtual"] = virtual diff --git a/tests/unit/plugins/module_utils/generic/test_generic.py b/tests/unit/plugins/module_utils/generic/test_generic.py index 6a1c699..269d33b 100644 --- a/tests/unit/plugins/module_utils/generic/test_generic.py +++ b/tests/unit/plugins/module_utils/generic/test_generic.py @@ -2,8 +2,7 @@ import os import unittest try: # pragma: nocover - from ansible_collections.sebastian.systemd.plugins.module_utils.generic import \ - Types + from ansible_collections.sebastian.systemd.plugins.module_utils.generic import Types except ImportError: # pragma: nocover import sys