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 0e906d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/functional/r/regression_02/regression_3979.py
@@ -0,0 +1,9 @@
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 0e906d8

Please sign in to comment.