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 954fff2 commit 33624ccCopy full SHA for 33624cc
src/ansys/dpf/core/operators/build.py
@@ -33,14 +33,7 @@
33
34
35
def find_class_origin(class_name: str, package_name: str = "ansys.dpf.core") -> Optional[str]:
36
- """
37
- Find the fully qualified import path where a class is *originally defined*
38
- within a given package (not just re-exported).
39
-
40
- Example:
41
- find_class_origin("HTTPError", "requests")
42
- -> "requests.exceptions.HTTPError"
43
+ """Find the fully qualified import path where a class is originally defined."""
44
try:
45
pkg = importlib.import_module(package_name)
46
except ModuleNotFoundError:
0 commit comments