Minor strictness increases

This commit is contained in:
Kovid Goyal
2020-03-14 14:59:31 +05:30
parent 5f06d3a427
commit c912eef040
10 changed files with 31 additions and 25 deletions

View File

@@ -14,7 +14,8 @@ import sys
import time
from functools import partial
from typing import (
Any, Callable, Dict, Iterable, List, Match, Optional, Tuple, Union
Any, Callable, Dict, Iterable, List, Match, Optional, Sequence, Tuple,
Union
)
from docutils import nodes
@@ -27,13 +28,13 @@ from sphinx import addnodes # type: ignore
from sphinx.environment.adapters.toctree import TocTree # type: ignore
from sphinx.util.logging import getLogger # type: ignore
from kitty.conf.definition import Option, Shortcut # noqa
from kitty.constants import str_version # noqa
kitty_src = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if kitty_src not in sys.path:
sys.path.insert(0, kitty_src)
from kitty.constants import str_version # noqa
from kitty.conf.definition import Option, Sequence, Shortcut # noqa
# config {{{
# -- Project information -----------------------------------------------------