@@ -46,7 +46,7 @@ class CliEnv: # noqa: PLW1641
46
46
as ``<env_list>``.
47
47
"""
48
48
49
- def __init__ (self , value : None | list [str ] | str = None ) -> None :
49
+ def __init__ (self , value : list [str ] | str | None = None ) -> None :
50
50
if isinstance (value , str ):
51
51
value = StrConvert ().to (value , of_type = List [str ], factory = None )
52
52
self ._names : list [str ] | None = value
@@ -148,14 +148,14 @@ def __init__(self, state: State) -> None:
148
148
self .on_empty_fallback_py = True
149
149
self ._warned_about : set [str ] = set () #: shared set of skipped environments that were already warned about
150
150
self ._state = state
151
- self ._defined_envs_ : None | dict [str , _ToxEnvInfo ] = None
151
+ self ._defined_envs_ : dict [str , _ToxEnvInfo ] | None = None
152
152
self ._pkg_env_counter : Counter [str ] = Counter ()
153
153
from tox .plugin .manager import MANAGER # noqa: PLC0415
154
154
155
155
self ._manager = MANAGER
156
156
self ._log_handler = self ._state ._options .log_handler # noqa: SLF001
157
157
self ._journal = self ._state ._journal # noqa: SLF001
158
- self ._provision : None | tuple [bool , str ] = None
158
+ self ._provision : tuple [bool , str ] | None = None
159
159
160
160
self ._state .conf .core .add_config ("labels" , Dict [str , EnvList ], {}, "core labels" )
161
161
tox_env_filter_regex = getattr (state .conf .options , "skip_env" , "" ).strip ()
0 commit comments