Skip to content

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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants