8000 FIX set docstrings on sklearn.utils.fixes.threadpool_limits/info (#21… · scikit-learn/scikit-learn@47a49c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 47a49c5

Browse files
authored
FIX set docstrings on sklearn.utils.fixes.threadpool_limits/info (#21338)
* FIX set docstrings on sklearn.utils.fixes.threadpool_limits/info * Skip threadpool_info/threadpool_limits docstring checks for now
1 parent 5f6e17c commit 47a49c5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

maint_tools/test_docstrings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@
228228
"sklearn.utils.extmath.weighted_mode",
229229
"sklearn.utils.fixes.delayed",
230230
"sklearn.utils.fixes.linspace",
231+
# To be fixed in upstream issue:
232+
# https://github.com/joblib/threadpoolctl/issues/108
233+
"sklearn.utils.fixes.threadpool_info",
234+
"sklearn.utils.fixes.threadpool_limits",
231235
"sklearn.utils.gen_batches",
232236
"sklearn.utils.gen_even_slices",
233237
"sklearn.utils.get_chunk_n_rows",

sklearn/utils/fixes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,15 @@ def threadpool_limits(limits=None, user_api=None):
297297
return threadpoolctl.threadpool_limits(limits=limits, user_api=user_api)
298298

299299

300+
threadpool_limits.__doc__ = threadpoolctl.threadpool_limits.__doc__
301+
302+
300303
def threadpool_info():
301304
controller = _get_threadpool_controller()
302305
if controller is not None:
303306
return controller.info()
304307
else:
305308
return threadpoolctl.threadpool_info()
309+
310+
311+
threadpool_info.__doc__ = threadpoolctl.threadpool_info.__doc__

0 commit comments

Comments
 (0)
0