From b823af00ffab986fc9c82a20862714be571dc15e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Jan 2021 22:04:53 +0530 Subject: [PATCH] Get rid of a bunch of noqas --- kitty/typing.pyi | 51 ++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/kitty/typing.pyi b/kitty/typing.pyi index 938fd6259..eb683c4c4 100644 --- a/kitty/typing.pyi +++ b/kitty/typing.pyi @@ -1,43 +1,43 @@ -from asyncio import AbstractEventLoop as AbstractEventLoop # noqa -from socket import AddressFamily as AddressFamily, socket as Socket # noqa -from subprocess import ( # noqa; noqa +from asyncio import AbstractEventLoop as AbstractEventLoop +from socket import AddressFamily as AddressFamily, socket as Socket +from subprocess import ( CompletedProcess as CompletedProcess, Popen as PopenType ) -from typing import ( # noqa +from typing import ( Literal, Protocol as Protocol, TypedDict as TypedDict ) -from kittens.hints.main import Mark as MarkType # noqa -from kittens.tui.handler import Handler as HandlerType # noqa -from kittens.tui.images import ( # noqa +from kittens.hints.main import Mark as MarkType +from kittens.tui.handler import Handler as HandlerType +from kittens.tui.images import ( GraphicsCommand as GraphicsCommandType, ImageManager as ImageManagerType ) -from kittens.tui.loop import ( # noqa +from kittens.tui.loop import ( Debug as Debug, Loop as LoopType, MouseEvent as MouseEvent, TermManager as TermManagerType ) -from kitty.conf.utils import KittensKeyAction as KittensKeyActionType # noqa +from kitty.conf.utils import KittensKeyAction as KittensKeyActionType -from .boss import Boss as BossType # noqa -from .child import Child as ChildType # noqa -from .conf.utils import BadLine as BadLineType # noqa -from .config import ( # noqa; noqa +from .boss import Boss as BossType +from .child import Child as ChildType +from .conf.utils import BadLine as BadLineType +from .config import ( KeyAction as KeyActionType, KeyMap as KeyMap, KittyCommonOpts as KittyCommonOpts, SequenceMap as SequenceMap ) -from .fast_data_types import ( # noqa +from .fast_data_types import ( CoreTextFont as CoreTextFont, FontConfigPattern as FontConfigPattern, Screen as ScreenType, StartupCtx as StartupCtx ) -from .key_encoding import KeyEvent as KeyEventType # noqa -from .layout.base import Layout as LayoutType # noqa -from .rc.base import RemoteCommand as RemoteCommandType # noqa -from .session import Session as SessionType, Tab as SessionTab # noqa -from .tabs import ( # noqa +from .key_encoding import KeyEvent as KeyEventType +from .layout.base import Layout as LayoutType +from .rc.base import RemoteCommand as RemoteCommandType +from .session import Session as SessionType, Tab as SessionTab +from .tabs import ( SpecialWindowInstance as SpecialWindowInstance, Tab as TabType ) -from .utils import ScreenSize as ScreenSize # noqa -from .window import Window as WindowType # noqa +from .utils import ScreenSize as ScreenSize +from .window import Window as WindowType EdgeLiteral = Literal['left', 'top', 'right', 'bottom'] MatchType = Literal['mime', 'ext', 'protocol', 'file', 'path', 'url', 'fragment_matches'] @@ -47,3 +47,12 @@ GRT_t = Literal['d', 'f', 't', 's'] GRT_o = Literal['z'] GRT_m = Literal[0, 1] GRT_d = Literal['a', 'A', 'c', 'C', 'i', 'I', 'p', 'P', 'q', 'Q', 'x', 'X', 'y', 'Y', 'z', 'Z'] +__all__ = ( + 'EdgeLiteral', 'MatchType', 'GRT_a', 'GRT_f', 'GRT_t', 'GRT_o', 'GRT_m', 'GRT_d', + 'GraphicsCommandType', 'HandlerType', 'AbstractEventLoop', 'AddressFamily', 'Socket', 'CompletedProcess', + 'PopenType', 'Protocol', 'TypedDict', 'MarkType', 'ImageManagerType', 'Debug', 'LoopType', 'MouseEvent', + 'TermManagerType', 'KittensKeyActionType', 'BossType', 'ChildType', 'BadLineType', + 'KeyActionType', 'KeyMap', 'KittyCommonOpts', 'SequenceMap', 'CoreTextFont', + 'FontConfigPattern', 'ScreenType', 'StartupCtx', 'KeyEventType', 'LayoutType', + 'RemoteCommandType', 'SessionType', 'SessionTab', 'SpecialWindowInstance', 'TabType', 'ScreenSize', 'WindowType' +)