Skip to content

Commit

Permalink
Update mypy and linter ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Dec 11, 2023
1 parent 7013168 commit 2abd05a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion consolekit/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import click

# this package
from consolekit import commands as commands # noqa: F401
from consolekit import input as input # noqa: A001,F401 # pylint: disable=redefined-builtin
from consolekit import input as input # noqa: F401
from consolekit import terminal_colours as terminal_colours # noqa: F401
from consolekit import tracebacks as tracebacks # noqa: F401
from consolekit import utils as utils # noqa: F401
Expand Down
4 changes: 2 additions & 2 deletions consolekit/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class ContextInheritingGroup(click.Group):
.. autosummary-widths:: 5/16
"""

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

def group(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Group]:
def group(self, *args, **kwargs) -> Callable[[Callable[..., Any]], click.Group]: # type: ignore[override]
"""
A shortcut decorator for declaring and attaching a group to the group.
Expand Down
2 changes: 1 addition & 1 deletion consolekit/terminal_colours.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def set_title(title: str) -> str: # noqa: D103
return OSC + "2;" + title + BEL


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


Expand Down
2 changes: 1 addition & 1 deletion consolekit/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(
) -> None:
super().__init__(charset, env, echo_stdin, mix_stderr)

def invoke( # type: ignore[override] # noqa: D101
def invoke( # type: ignore[override]
self,
cli: click.BaseCommand,
args: Optional[Union[str, Iterable[str]]] = None,
Expand Down
2 changes: 1 addition & 1 deletion doc-source/docs_needspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def configure(app: Sphinx, config: Config):
latex_extrapackages.append(r"\usepackage{needspace}")
latex_elements["extrapackages"] = str(latex_extrapackages)

config.latex_elements = latex_elements # type: ignore
config.latex_elements = latex_elements


def setup(app: Sphinx):
Expand Down

0 comments on commit 2abd05a

Please sign in to comment.