diff --git a/docs/conf.py b/docs/conf.py index 5a5f8ed5c..c9ea769a3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,11 +12,15 @@ import os import shutil +import warnings from pathlib import Path from typing import Any from intersphinx_registry import get_intersphinx_mapping +set_type_checking_flag = True +warnings.filterwarnings("ignore", message="Cannot resolve forward reference.*InteractiveShell") + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here.