From 4dc0297bfd8a786cb1c0c989d18a7abb8585c38c Mon Sep 17 00:00:00 2001 From: Nicholas Cilfone Date: Tue, 11 Jan 2022 13:38:41 -0500 Subject: [PATCH] linted --- spock/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spock/utils.py b/spock/utils.py index 72fe8d12..35efadd9 100644 --- a/spock/utils.py +++ b/spock/utils.py @@ -24,8 +24,8 @@ else: from typing import _GenericAlias -from pathlib import Path from enum import EnumMeta +from pathlib import Path from typing import List, Type, Union @@ -52,7 +52,7 @@ def _find_all_spock_classes(attr_class: Type): dep_classes.extend(_get_enum_classes(v.type)) # Check for List[@spock-class] -- needs to be checked against 3.6 typing.List as well elif ((v.type is list) or (v.type is List)) and _is_spock_instance( - v.metadata["type"].__args__[0] + v.metadata["type"].__args__[0] ): dep_classes.append(v.metadata["type"].__args__[0]) return dep_classes