diff options
author | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-08-06 18:31:14 +0200 |
---|---|---|
committer | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-08-06 18:31:14 +0200 |
commit | 5c82449eca73ef448eb7fdfbcc061cb91d70c18c (patch) | |
tree | c4a8394dd9105ba73e2df12c3c5e26cbae501d54 /sphinx/jinja2glue.py | |
parent | 6f530ca3ea305a4c4e077a237fc7196e959a4bb4 (diff) | |
parent | 59056aa7816ebae81aa6842290aa7a6ece14d1bd (diff) | |
download | sphinx-git-5c82449eca73ef448eb7fdfbcc061cb91d70c18c.tar.gz |
Merge branch '5.x'
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index 56f65fe72..8a551d6ef 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -3,7 +3,7 @@ import pathlib from os import path from pprint import pformat -from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Tuple, Union +from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Tuple, Union from jinja2 import BaseLoader, FileSystemLoader, TemplateNotFound from jinja2.environment import Environment @@ -142,7 +142,12 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader): # TemplateBridge interface - def init(self, builder: "Builder", theme: Theme = None, dirs: List[str] = None) -> None: + def init( + self, + builder: "Builder", + theme: Optional[Theme] = None, + dirs: Optional[List[str]] = None + ) -> None: # create a chain of paths to search if theme: # the theme's own dir and its bases' dirs |