diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
commit | 94024e6efaa23869a6141dba05118c158d3d3f8f (patch) | |
tree | 1bfccc5447ca099627c4c31f536d7082b7b9eb6a /sphinx/ext/graphviz.py | |
parent | a4d41aa889388bf8ee2815d4819235b5ca978a8d (diff) | |
parent | eb0a6c574fd18d5c5d903e5d07cba8cafc376ee0 (diff) | |
download | sphinx-git-94024e6efaa23869a6141dba05118c158d3d3f8f.tar.gz |
Merge branch '5.x'
# Conflicts:
# sphinx/ext/autodoc/__init__.py
# sphinx/writers/html5.py
Diffstat (limited to 'sphinx/ext/graphviz.py')
-rw-r--r-- | sphinx/ext/graphviz.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index b4a69a0f2..0459c4a96 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -6,7 +6,7 @@ import re import subprocess from os import path from subprocess import PIPE, CalledProcessError -from typing import Any, Dict, List, Tuple +from typing import Any, Dict, List, Optional, Tuple from docutils import nodes from docutils.nodes import Node @@ -210,7 +210,7 @@ class GraphvizSimple(SphinxDirective): def render_dot(self: SphinxTranslator, code: str, options: Dict, format: str, - prefix: str = 'graphviz', filename: str = None) -> Tuple[str, str]: + prefix: str = 'graphviz', filename: Optional[str] = None) -> Tuple[str, str]: """Render graphviz code into a PNG or PDF output file.""" graphviz_dot = options.get('graphviz_dot', self.builder.config.graphviz_dot) hashkey = (code + str(options) + str(graphviz_dot) + |