From 6b0bb2e845fb4c0e11255ea30cd99c1017bd5c87 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Jun 2022 06:47:06 +0530 Subject: [PATCH] Sphinx v5 needs language to be not None --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a5cf3d6ed..40a9154b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ import subprocess import sys import time from functools import partial -from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple +from typing import Any, Callable, Dict, Iterable, List, Tuple from docutils import nodes from docutils.parsers.rst.roles import set_classes @@ -85,7 +85,7 @@ master_doc = 'index' # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language: Optional[str] = None +language: str = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.