Now have sphinx types on dev machine

This commit is contained in:
Kovid Goyal 2021-12-23 10:13:16 +05:30
parent 0a9ba1bc08
commit 8699f90fa4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 5 additions and 11 deletions

View File

@ -21,9 +21,9 @@ from pygments.lexer import RegexLexer, bygroups # type: ignore
from pygments.token import ( # type: ignore from pygments.token import ( # type: ignore
Comment, Keyword, Literal, Name, Number, String, Whitespace Comment, Keyword, Literal, Name, Number, String, Whitespace
) )
from sphinx import addnodes, version_info # type: ignore from sphinx import addnodes, version_info
from sphinx.builders.html.transforms import KeyboardTransform # type: ignore from sphinx.builders.html.transforms import KeyboardTransform
from sphinx.util.logging import getLogger # type: ignore from sphinx.util.logging import getLogger
KeyboardTransform.builders = ('html', 'dirhtml') # type: ignore KeyboardTransform.builders = ('html', 'dirhtml') # type: ignore

View File

@ -4,13 +4,12 @@
import os import os
from unittest import TestCase from unittest import TestCase
from kitty.config import ( from kitty.config import finalize_keys, finalize_mouse_mappings
Options, defaults, finalize_keys, finalize_mouse_mappings
)
from kitty.fast_data_types import ( from kitty.fast_data_types import (
Cursor, HistoryBuf, LineBuf, Screen, set_options Cursor, HistoryBuf, LineBuf, Screen, set_options
) )
from kitty.options.parse import merge_result_dicts from kitty.options.parse import merge_result_dicts
from kitty.options.types import Options, defaults
from kitty.types import MouseEvent from kitty.types import MouseEvent

View File

@ -30,8 +30,3 @@ disallow_untyped_calls = True
disallow_incomplete_defs = True disallow_incomplete_defs = True
strict = True strict = True
no_implicit_reexport = True no_implicit_reexport = True
[mypy-conf]
# ignored because on the CI server sphinx type stubs are available somehow, but
# not on my dev machine
warn_unused_ignores = False