-
Notifications
You must be signed in to change notification settings - Fork 0
Linter small talk #121
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
Linter small talk #121
Conversation
Copied the layout from other functions
Also fix the type errors on the functions calling it, and add a unit test to check it works
This could cause a race condition if we don't check before the `try`
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
13fc45e to
6caba5f
Compare
Session creation will stacktrace if unable to create, appease the linter by casting our session so it doesn't think it's `None`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
|
@EdGeraghty I've opened a new pull request, #122, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@EdGeraghty I've opened a new pull request, #123, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: EdGeraghty <20861699+EdGeraghty@users.noreply.github.com>
Acknowledge contradictory feedback on redundant runtime checks
Remove backticks from docstring parameters to follow Python conventions
This pull request focuses on improving type safety, error handling, and code clarity in both the command handling and Semaphore integration modules. The changes ensure that functions consistently handle optional parameters, and introduces a new method for retrieving individual task details from Semaphore.
New functionality:
get_taskinchatrixcd/semaphore.pyto retrieve details of a specific task by its ID, including error handling for session initialization and request failures.These changes collectively improve the maintainability, reliability, and clarity of the codebase, especially in scenarios where optional parameters or external dependencies (like network sessions) may be absent or fail.