@@ -112,7 +112,7 @@ def split(
112
112
) -> list [str | Any ]: ...
113
113
@overload
114
114
def split (
115
- pattern : ReadableBuffer | Pattern [bytes ],
115
+ pattern : bytes | Pattern [bytes ],
116
116
string : ReadableBuffer ,
117
117
maxsplit : int = 0 ,
118
118
flags : int = 0 ,
@@ -134,7 +134,7 @@ def splititer(
134
134
) -> _regex .Splitter [str ]: ...
135
135
@overload
136
136
def splititer (
137
- pattern : ReadableBuffer | Pattern [bytes ],
137
+ pattern : bytes | Pattern [bytes ],
138
138
string : ReadableBuffer ,
139
139
maxsplit : int = 0 ,
140
140
flags : int = 0 ,
@@ -158,7 +158,7 @@ def findall(
158
158
) -> list [Any ]: ...
159
159
@overload
160
160
def findall (
161
- pattern : ReadableBuffer | Pattern [bytes ],
161
+ pattern : bytes | Pattern [bytes ],
162
162
string : ReadableBuffer ,
163
163
flags : int = 0 ,
164
164
pos : int | None = None ,
@@ -185,7 +185,7 @@ def finditer(
185
185
) -> _regex .Scanner [str ]: ...
186
186
@overload
187
187
def finditer (
188
- pattern : ReadableBuffer | Pattern [bytes ],
188
+ pattern : bytes | Pattern [bytes ],
189
189
string : ReadableBuffer ,
190
190
flags : int = 0 ,
191
191
pos : int | None = None ,
@@ -213,7 +213,7 @@ def sub(
213
213
) -> str : ...
214
214
@overload
215
215
def sub (
216
- pattern : ReadableBuffer | Pattern [bytes ],
216
+ pattern : bytes | Pattern [bytes ],
217
217
repl : ReadableBuffer | Callable [[Match [bytes ]], ReadableBuffer ],
218
218
string : ReadableBuffer ,
219
219
count : int = 0 ,
@@ -241,7 +241,7 @@ def subf(
241
241
) -> str : ...
242
242
@overload
243
243
def subf (
244
- pattern : ReadableBuffer | Pattern [bytes ],
244
+ pattern : bytes | Pattern [bytes ],
245
245
format : ReadableBuffer | Callable [[Match [bytes ]], ReadableBuffer ],
246
246
string : ReadableBuffer ,
247
247
count : int = 0 ,
@@ -269,7 +269,7 @@ def subn(
269
269
) -> tuple [str , int ]: ...
270
270
@overload
271
271
def subn (
272
- pattern : ReadableBuffer | Pattern [bytes ],
272
+ pattern : bytes | Pattern [bytes ],
273
273
repl : ReadableBuffer | Callable [[Match [bytes ]], ReadableBuffer ],
274
274
string : ReadableBuffer ,
275
275
count : int = 0 ,
@@ -297,7 +297,7 @@ def subfn(
297
297
) -> tuple [str , int ]: ...
298
298
@overload
299
299
def subfn (
300
- pattern : ReadableBuffer | Pattern [bytes ],
300
+ pattern : bytes | Pattern [bytes ],
301
301
format : ReadableBuffer | Callable [[Match [bytes ]], ReadableBuffer ],
302
302
string : ReadableBuffer ,
303
303
count : int = 0 ,
0 commit comments