Skip to content

Remove mypy overrides for tests.test_quickstart #13749

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

Merged
merged 1 commit into from
Jul 26, 2025

Conversation

adamtheturtle
Copy link
Contributor

No description provided.

def mock_input(
answers: dict[str, str], needanswer: bool = False
) -> Callable[[str], str]:
class _MockTermInput(Protocol):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An alternative to much of the work here is to make term_input take only keyword arguments:

def term_input(prompt: str, /) -> str:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean positional-only? That would be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry. Ok I'll do that and this PR will be simpler

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made this change

@AA-Turner
Copy link
Member

@adamtheturtle a note for the future; please can you avoid force-pushing your branches? GH limitations make it harder to review (#13714 (comment)).

A

@AA-Turner AA-Turner merged commit 3d79d84 into sphinx-doc:master Jul 26, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants