Skip to content

Commit

Permalink
Add a regression test for issue #3979
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jan 25, 2022
1 parent 600e9b3 commit 55fc8b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/functional/r/regression_02/regression_3979.py
@@ -0,0 +1,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] # <-- that is where pylint identifies E1136
else:
BasePathLike = os.PathLike

foo : Union[str, BasePathLike] = "bar"

0 comments on commit 55fc8b1

Please sign in to comment.