Skip to content

Commit a05f3b2

Browse files
committed
Type
1 parent 40bb67c commit a05f3b2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pandas/core/internals/managers.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
import itertools
33
import operator
44
import re
5-
from typing import DefaultDict, Dict, List, Optional, Sequence, Tuple, TypeVar, Union
5+
from typing import (
6+
DefaultDict,
7+
Dict,
8+
List,
9+
Optional,
10+
Pattern,
11+
Sequence,
12+
Tuple,
13+
TypeVar,
14+
Union,
15+
)
616
import warnings
717

818
import numpy as np
@@ -1949,7 +1959,7 @@ def _check_comparison_types(
19491959
else:
19501960
op = np.vectorize(
19511961
lambda x: bool(re.search(b, x))
1952-
if isinstance(x, str) and isinstance(b, (str, re.Pattern))
1962+
if isinstance(x, str) and isinstance(b, (str, Pattern))
19531963
else False
19541964
)
19551965

0 commit comments

Comments
 (0)