Skip to content

Commit

Permalink
Bump mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-raca committed Jul 13, 2023
1 parent f83c66d commit be20b5d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test = [
"coverage >=6.2,<7.0",
"pytest-xdist >=1.32.0,<4.0.0",
"pytest-sugar >=0.9.4,<0.10.0",
"mypy ==0.910",
"mypy ==0.971",
"black >=22.3.0,<23.0.0",
"isort >=5.0.6,<6.0.0",
"rich >=10.11.0,<14.0.0",
Expand Down
3 changes: 1 addition & 2 deletions typer/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

import sys
from os import PathLike
from typing import ( # type: ignore
from typing import (
TYPE_CHECKING,
AbstractSet,
Any,
ClassVar,
Dict,
Generator,
Iterable,
List,
Mapping,
NewType,
Expand Down
4 changes: 2 additions & 2 deletions typer/completion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys
from typing import Any, Dict, Tuple
from typing import Any, MutableMapping, Tuple

import click

Expand Down Expand Up @@ -120,7 +120,7 @@ def completion_init() -> None:
# This is only called in new Command method, only used by Click 8.x+
def shell_complete(
cli: click.BaseCommand,
ctx_args: Dict[str, Any],
ctx_args: MutableMapping[str, Any],
prog_name: str,
complete_var: str,
instruction: str,
Expand Down
7 changes: 4 additions & 3 deletions typer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Callable,
Dict,
List,
MutableMapping,
Optional,
Sequence,
TextIO,
Expand Down Expand Up @@ -634,7 +635,7 @@ def _typer_format_options(
def _typer_main_shell_completion(
self: click.core.Command,
*,
ctx_args: Dict[str, Any],
ctx_args: MutableMapping[str, Any],
prog_name: str,
complete_var: Optional[str] = None,
) -> None:
Expand Down Expand Up @@ -696,7 +697,7 @@ def format_options(

def _main_shell_completion(
self,
ctx_args: Dict[str, Any],
ctx_args: MutableMapping[str, Any],
prog_name: str,
complete_var: Optional[str] = None,
) -> None:
Expand Down Expand Up @@ -758,7 +759,7 @@ def format_options(

def _main_shell_completion(
self,
ctx_args: Dict[str, Any],
ctx_args: MutableMapping[str, Any],
prog_name: str,
complete_var: Optional[str] = None,
) -> None:
Expand Down
2 changes: 1 addition & 1 deletion typer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@


def except_hook(
exc_type: Type[BaseException], exc_value: BaseException, tb: TracebackType
exc_type: Type[BaseException], exc_value: BaseException, tb: Optional[TracebackType]
) -> None:
exception_config: Union[DeveloperExceptionConfig, None] = getattr(
exc_value, _typer_developer_exception_attr_name, None
Expand Down

0 comments on commit be20b5d

Please sign in to comment.