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 096970f commit d01d2c9Copy full SHA for d01d2c9
src/griffe/finder.py
@@ -1,5 +1,16 @@
1
"""This module contains the code allowing to find modules."""
2
3
+# NOTE: it might be possible to replace a good part of this module's logic
4
+# with utilities from `importlib` (however the util in question is private):
5
+# >>> from importlib.util import _find_spec
6
+# >>> _find_spec("griffe.agents", _find_spec("griffe", None).submodule_search_locations)
7
+# ModuleSpec(
8
+# name='griffe.agents',
9
+# loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f34e8110>,
10
+# origin='/media/data/dev/griffe/src/griffe/agents/__init__.py',
11
+# submodule_search_locations=['/media/data/dev/griffe/src/griffe/agents'],
12
+# )
13
+
14
from __future__ import annotations
15
16
import ast
0 commit comments