File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55import concurrent
66import copy
7- import functools
87import logging
98import os
109import pathlib
@@ -262,7 +261,7 @@ def _mock_fetch_dataframe(
262261 code_list_csv_filepath_nn : pathlib .Path ,
263262 code_list_csv_filepath_en : pathlib .Path ,
264263) -> None :
265- def fake_code_list () -> dict [str , pd .DataFrame ]:
264+ def fake_code_list (_self : Any ) -> dict [str , pd .DataFrame ]: # noqa: ANN401
266265 return {
267266 "nb" : pd .read_csv (code_list_csv_filepath_nb , converters = {"code" : str }),
268267 "nn" : pd .read_csv (code_list_csv_filepath_nn , converters = {"code" : str }),
@@ -272,7 +271,7 @@ def fake_code_list() -> dict[str, pd.DataFrame]:
272271 mocker .patch (
273272 DATADOC_METADATA_MODULE
274273 + ".code_list.CodeList._fetch_data_from_external_source" ,
275- functools . partial ( fake_code_list ) ,
274+ fake_code_list ,
276275 )
277276
278277
You can’t perform that action at this time.
0 commit comments