Skip to content

Remove some of the Anys from mypy/config_parser.py #19637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class VersionTypeError(argparse.ArgumentTypeError):
"""Provide a fallback value if the Python version is unsupported."""

def __init__(self, *args: Any, fallback: tuple[int, int]) -> None:
def __init__(self, *args: object, fallback: tuple[int, int]) -> None:
self.fallback = fallback
super().__init__(*args)

Expand Down Expand Up @@ -600,7 +600,7 @@ def parse_section(
return results, report_dirs


def convert_to_boolean(value: Any | None) -> bool:
def convert_to_boolean(value: object) -> bool:
"""Return a boolean value translating from other types if necessary."""
if isinstance(value, bool):
return value
Expand Down
Loading