imblearn/utils/_docstring.py

Killed 3 out of 6 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 426

--- imblearn/utils/_docstring.py
+++ imblearn/utils/_docstring.py
@@ -19,7 +19,7 @@
         self.params = args or kwargs
 
     def __call__(self, obj):
-        obj.__doc__ = obj.__doc__.format(**self.params)
+        obj.__doc__ = None
         return obj
 
 

Mutant 427

--- imblearn/utils/_docstring.py
+++ imblearn/utils/_docstring.py
@@ -23,16 +23,7 @@
         return obj
 
 
-_random_state_docstring = """random_state : int, RandomState instance, default=None
-        Control the randomization of the algorithm.
-
-        - If int, ``random_state`` is the seed used by the random number
-          generator;
-        - If ``RandomState`` instance, random_state is the random number
-          generator;
-        - If ``None``, the random number generator is the ``RandomState``
-          instance used by ``np.random``.
-    """.rstrip()
+_random_state_docstring = None
 
 _n_jobs_docstring = """n_jobs : int, default=None
         Number of CPU cores used during the cross-validation loop.

Mutant 428

--- imblearn/utils/_docstring.py
+++ imblearn/utils/_docstring.py
@@ -34,11 +34,5 @@
           instance used by ``np.random``.
     """.rstrip()
 
-_n_jobs_docstring = """n_jobs : int, default=None
-        Number of CPU cores used during the cross-validation loop.
-        ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
-        ``-1`` means using all processors. See
-        `Glossary `_
-        for more details.
-    """.rstrip()
+_n_jobs_docstring = None