We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f326eb2 commit 3bdf9c3Copy full SHA for 3bdf9c3
stumpy/__init__.py
@@ -26,6 +26,22 @@
26
from .gpu_stump import gpu_stump # noqa: F401
27
else: # pragma: no cover
28
from .core import driver_not_found as gpu_stump # noqa: F401
29
+ import ast
30
+ import pathlib
31
+
32
+ gpu_stump.__doc__ = ""
33
+ filepath = pathlib.Path(__file__).parent / "gpu_stump.py"
34
35
+ file_contents = ""
36
+ with open(filepath) as f:
37
+ file_contents = f.read()
38
+ module = ast.parse(file_contents)
39
+ function_definitions = [
40
+ node for node in module.body if isinstance(node, ast.FunctionDef)
41
+ ]
42
+ for f in function_definitions:
43
+ if f.name == "gpu_stump":
44
+ gpu_stump.__doc__ = ast.get_docstring(f)
45
46
try:
47
_dist = get_distribution("stumpy")
0 commit comments