Skip to content

Refactor: Add type hints to dashboard server functions#295

Merged
vicsanity623 merged 2 commits into
mainfrom
pyob-evolution-v2-1778648072
May 13, 2026
Merged

Refactor: Add type hints to dashboard server functions#295
vicsanity623 merged 2 commits into
mainfrom
pyob-evolution-v2-1778648072

Conversation

@pyob-bot
Copy link
Copy Markdown
Collaborator

Summary of Changes

  • Added explicit type annotations to the is_port_available and run_server functions in src/pyob/dashboard_server.py.
  • Updated is_port_available to specify an int input parameter and a bool return type.
  • Updated run_server to specify a None return type.

Technical Impact

  • Improves code readability and maintainability by providing clearer function signatures.
  • Enhances static analysis and IDE autocompletion support, reducing the likelihood of type-related bugs during future development.

@vicsanity623 vicsanity623 merged commit 3ff2770 into main May 13, 2026
1 check passed
@vicsanity623 vicsanity623 deleted the pyob-evolution-v2-1778648072 branch May 13, 2026 11:45
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