Skip to content

Commit 2abd05a

Browse files
committed
Update mypy and linter ignores.
1 parent 7013168 commit 2abd05a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

consolekit/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import click
88

99
# this package
1010
from consolekit import commands as commands # noqa: F401
11-
from consolekit import input as input # noqa: A001,F401 # pylint: disable=redefined-builtin
11+
from consolekit import input as input # noqa: F401
1212
from consolekit import terminal_colours as terminal_colours # noqa: F401
1313
from consolekit import tracebacks as tracebacks # noqa: F401
1414
from consolekit import utils as utils # noqa: F401

consolekit/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class ContextInheritingGroup(click.Group):
325325
.. autosummary-widths:: 5/16
326326
"""
327327

328-
def command(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Command]:
328+
def command(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Command]: # type: ignore[override]
329329
"""
330330
A shortcut decorator for declaring and attaching a command to the group.
331331
@@ -337,7 +337,7 @@ def command(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Comma
337337
kwargs.setdefault("context_settings", self.context_settings)
338338
return super().command(*args, **kwargs)
339339

340-
def group(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Group]:
340+
def group(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Group]: # type: ignore[override]
341341
"""
342342
A shortcut decorator for declaring and attaching a group to the group.
343343

consolekit/terminal_colours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def set_title(title: str) -> str: # noqa: D103
180180
return OSC + "2;" + title + BEL
181181

182182

183-
# def clear_screen(mode: int = 2) -> str: # noqa: D103
183+
# def clear_screen(mode: int = 2) -> str:
184184
# return CSI + str(mode) + 'J'
185185

186186

consolekit/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(
208208
) -> None:
209209
super().__init__(charset, env, echo_stdin, mix_stderr)
210210

211-
def invoke( # type: ignore[override] # noqa: D101
211+
def invoke( # type: ignore[override]
212212
self,
213213
cli: click.BaseCommand,
214214
args: Optional[Union[str, Iterable[str]]] = None,

doc-source/docs_needspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def configure(app: Sphinx, config: Config):
3535
latex_extrapackages.append(r"\usepackage{needspace}")
3636
latex_elements["extrapackages"] = str(latex_extrapackages)
3737

38-
config.latex_elements = latex_elements # type: ignore
38+
config.latex_elements = latex_elements
3939

4040

4141
def setup(app: Sphinx):

0 commit comments

Comments
 (0)