summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression_02/regression_3979.py
blob: 7cc74a4f504eda9e05af194b360fa430441da621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Regression test for https://github.com/PyCQA/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"