Skip to content

Commit fd495c4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2562939 commit fd495c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tox/config/loader/convert.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ def to(self, raw: T, of_type: type[V], factory: Factory[V]) -> V: # noqa: PLR09
4242
return self.to_str(raw) # type: ignore[return-value]
4343
# python does not allow use of parametrized generics with isinstance,
4444
# so we need to check for them.
45-
if (
46-
hasattr(typing, "GenericAlias") and
47-
isinstance(of_type, typing.GenericAlias)
48-
):
45+
if hasattr(typing, "GenericAlias") and isinstance(of_type, typing.GenericAlias):
4946
return list(self.to_list(raw, of_type=of_type)) # type: ignore[return-value]
5047
if isinstance(raw, of_type): # already target type no need to transform it
5148
# do it this late to allow normalization - e.g. string strip

0 commit comments

Comments
 (0)