Skip to content

Commit 32eaaed

Browse files
committed
BUG: type aliasing is not allowed to be compared using isinstance()
1 parent 1ee5ecf commit 32eaaed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/compat/__init__.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,7 @@ def raise_with_traceback(exc, traceback=Ellipsis):
424424

425425

426426
# In Python 3.7, the private re._pattern_type is removed.
427-
# Python 3.5+ have typing.re.Pattern
428-
if PY35:
429-
import typing
430-
re_type = typing.re.Pattern
431-
else:
432-
re_type = type(re.compile(''))
427+
re_type = type(re.compile(''))
433428

434429
# https://github.com/pandas-dev/pandas/pull/9123
435430
def is_platform_little_endian():

0 commit comments

Comments
 (0)