Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix new mypy failures on typeshed's test scripts
  • Loading branch information
AlexWaygood committed Sep 26, 2022
commit d1b47ce975eb25c847a397dee2834ef193474737
4 changes: 2 additions & 2 deletions tests/mypy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from io import StringIO
from itertools import product
from pathlib import Path
from typing import TYPE_CHECKING, NamedTuple
from typing import TYPE_CHECKING, Any, NamedTuple

if TYPE_CHECKING:
from _typeshed import StrPath
Expand Down Expand Up @@ -157,7 +157,7 @@ def add_files(files: list[Path], seen: set[str], module: Path, args: TestConfig)

class MypyDistConf(NamedTuple):
module_name: str
values: dict
values: dict[str, dict[str, Any]]


# The configuration section in the metadata file looks like the following, with multiple module sections possible
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def strip_comments(text: str) -> str:
from termcolor import colored as colored
except ImportError:

def colored(s: str, _: str) -> str: # type: ignore
def colored(s: str, _: str) -> str: # type: ignore[misc]
return s


Expand Down