Skip to content

Refactor: Add explicit type annotation for input buffer in Windows input handling#326

Merged
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v2-1779960496
May 28, 2026
Merged

Refactor: Add explicit type annotation for input buffer in Windows input handling#326
vicsanity623 merged 1 commit into
mainfrom
pyob-evolution-v2-1779960496

Conversation

@pyob-bot
Copy link
Copy Markdown
Collaborator

Summary of Changes

  • Updated _win32_input method in src/pyob/core_utils.py to include an explicit type annotation for the input_str variable (input_str: str = "").
  • This change clarifies the intended type of the buffer used to accumulate user input on Windows platforms.

Technical Impact

  • Improves code readability and static analysis support by making the variable's type explicit.
  • Enhances compatibility with type checkers such as mypy and IDEs, reducing potential type‑related warnings.
  • No functional behavior changes; the method operates identically, merely with clearer type intent.

Base automatically changed from pyob-evolution-v1-1779960205 to main May 28, 2026 11:22
@vicsanity623 vicsanity623 merged commit 824a9b8 into main May 28, 2026
1 check passed
@vicsanity623 vicsanity623 deleted the pyob-evolution-v2-1779960496 branch May 28, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants