File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
stubs/sklearn/preprocessing Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,14 @@ disallow_untyped_defs = false
151
151
disable_error_code = [
152
152
# Not all imports in these stubs are gonna be typed
153
153
" import-untyped" ,
154
+ # mypy's overload implementation differs from pyright
155
+ # `assert-type` issues is tests mostly comme from checking overloads
156
+ # Since this project is specific to Pylance, just ignore them
157
+ " assert-type" ,
154
158
# TODO
155
159
" valid-type" , # 967 errors in 115 files
156
160
" override" , # 790 errors in 220 files
157
161
" assignment" , # 773 errors in 172 files
158
162
" misc" , # 692 errors in 132 files
159
163
" attr-defined" , # 202 errors in 75 files
160
- " assert-type" , # 6 errors in 1 file
161
164
]
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ def normalize(
221
221
* ,
222
222
axis : int = 1 ,
223
223
copy : bool = True ,
224
- return_norm : Literal [False ] = ... ,
224
+ return_norm : Literal [False ] = False ,
225
225
) -> csr_matrix : ...
226
226
@overload
227
227
def normalize (
@@ -239,7 +239,7 @@ def normalize(
239
239
* ,
240
240
axis : int = 1 ,
241
241
copy : bool = True ,
242
- return_norm : Literal [False ] = ... ,
242
+ return_norm : Literal [False ] = False ,
243
243
) -> ndarray : ...
244
244
def normalize (
245
245
X : MatrixLike | ArrayLike ,
You can’t perform that action at this time.
0 commit comments