From 3e3ccc84580a6043b4c417b4b5c89abc6e8c99b5 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 21 Apr 2023 00:10:13 +0200 Subject: [PATCH] some formatting --- plugins/module_utils/generic.py | 4 +--- tests/unit/plugins/module_utils/generic/test_generic.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) 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