diff --git a/src/tox/config/loader/convert.py b/src/tox/config/loader/convert.py index 1fa2af173..f7cf4e380 100644 --- a/src/tox/config/loader/convert.py +++ b/src/tox/config/loader/convert.py @@ -64,7 +64,7 @@ def _to_typing(self, raw: T, of_type: type[V], factory: Factory[V]) -> V: # noq elif origin == Union: # handle Optional values args: list[type[Any]] = of_type.__args__ # type: ignore[attr-defined] none = type(None) - if len(args) == 2 and none in args: # noqa: PLR2004 + if len(args) == 2 and none in args: # noqa: PLR2004 if isinstance(raw, str): raw = raw.strip() # type: ignore[assignment] if not raw: