Skip to content

Commit 2f3c9ba

Browse files
committed
BUG: type aliasing is not allowed to be compared using isinstance()
1 parent d623ffd commit 2f3c9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/compat/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def raise_with_traceback(exc, traceback=Ellipsis):
425425

426426
# In Python 3.7, the private re._pattern_type is removed.
427427
# Python 3.5+ have typing.re.Pattern
428-
if PY35:
428+
if sys.version_info >= (3, 5, 4):
429429
import typing
430430
re_type = typing.re.Pattern
431431
else:

0 commit comments

Comments
 (0)