Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Enable rendering type hints (PEP 484) (#701)

Benjamin Hackl9cd777d43bf7
diff --git a/docs/source/conf.py b/docs/source/conf.py
index fb54c997c..2ff52fba7 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -61,6 +61,10 @@ extensions = [
# Automatically generate stub pages when using the .. autosummary directive
autosummary_generate = True
+# generate documentation from type hints
+autodoc_typehints = "description"
+autoclass_content = "both"
+
# controls whether functions documented by the autofunction directive
# appear with their full module names
add_module_names = False