Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
ncilfone committed Jan 11, 2022
1 parent 5c90d37 commit 4dc0297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Expand Down

0 comments on commit 4dc0297

Please sign in to comment.