From 8699f90fa4ce89c1f77c3eabb80ad224d6f1dbd5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Dec 2021 10:13:16 +0530 Subject: [PATCH] Now have sphinx types on dev machine --- docs/conf.py | 6 +++--- kitty_tests/__init__.py | 5 ++--- setup.cfg | 5 ----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2ea7779fc..4d83ab3fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,9 +21,9 @@ from pygments.lexer import RegexLexer, bygroups # type: ignore from pygments.token import ( # type: ignore Comment, Keyword, Literal, Name, Number, String, Whitespace ) -from sphinx import addnodes, version_info # type: ignore -from sphinx.builders.html.transforms import KeyboardTransform # type: ignore -from sphinx.util.logging import getLogger # type: ignore +from sphinx import addnodes, version_info +from sphinx.builders.html.transforms import KeyboardTransform +from sphinx.util.logging import getLogger KeyboardTransform.builders = ('html', 'dirhtml') # type: ignore diff --git a/kitty_tests/__init__.py b/kitty_tests/__init__.py index cc4ad8d18..2caf0cd56 100644 --- a/kitty_tests/__init__.py +++ b/kitty_tests/__init__.py @@ -4,13 +4,12 @@ import os from unittest import TestCase -from kitty.config import ( - Options, defaults, finalize_keys, finalize_mouse_mappings -) +from kitty.config import finalize_keys, finalize_mouse_mappings from kitty.fast_data_types import ( Cursor, HistoryBuf, LineBuf, Screen, set_options ) from kitty.options.parse import merge_result_dicts +from kitty.options.types import Options, defaults from kitty.types import MouseEvent diff --git a/setup.cfg b/setup.cfg index d1b23cf7a..18a5a80d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,8 +30,3 @@ disallow_untyped_calls = True disallow_incomplete_defs = True strict = 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