Skip to content

Commit 5006980

Browse files
committed
Type
1 parent d21e4f0 commit 5006980

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

pandas/core/internals/managers.py

+15-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
@@ -1907,7 +1917,10 @@ def _merge_blocks(
19071917

19081918

19091919
def _compare_or_regex_search(
1910-
a: ArrayLike, b: Scalar, regex: bool = False, mask: Optional[ArrayLike] = None
1920+
a: ArrayLike,
1921+
b: Union[Scalar, Pattern],
1922+
regex: bool = False,
1923+
mask: Optional[ArrayLike] = None,
19111924
) -> Union[ArrayLike, bool]:
19121925
"""
19131926
Compare two array_like inputs of the same shape or two scalar values

0 commit comments

Comments
 (0)