phoerious - Overview
Pinned Loading
-
Sphinx conf.py template for enabling...
Sphinx conf.py template for enabling stub file parsing for native submodules. Sphinx doc added support for stubs in 8.2.0, but if you have a non-native __init__.py at the top, it won't pick up the stub files. This conf.py template allows you to specify explicit stub file paths for native submodules. 2
from importlib.abc import MetaPathFinder
3
from importlib.machinery import EXTENSION_SUFFIXES, ModuleSpec, SourceFileLoader
4
from pathlib import Path