blob: e14c5edb5352ba346ff11462fcd5137a43b8dbc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""
Regression test for https://github.com/pylint-dev/pylint/issues/3979
"""
import os
from typing import TYPE_CHECKING, Any, Union
if TYPE_CHECKING:
BasePathLike = os.PathLike[Any] # <-- pylint used to emit E1136 here
else:
BasePathLike = os.PathLike
Foo: Union[str, BasePathLike] = "bar"
|