Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid stacktrace due to isinstance not allowing parametrized generics #296

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tox_ansible/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from dataclasses import asdict, dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, TypeVar
from typing import TYPE_CHECKING, List, TypeVar # noqa: UP035

import yaml

Expand Down Expand Up @@ -62,7 +62,7 @@ def register_config(self: T) -> None:
"""Register the ansible configuration."""
self.add_config(
"skip",
of_type=list[str],
of_type=List[str], # noqa: UP006 https://github.com/tox-dev/tox/issues/3287
default=[],
desc="ansible configuration",
)
Expand Down
Loading