-
Notifications
You must be signed in to change notification settings - Fork 1
Get typing support on client and do better exception handling #88
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
Conversation
|
|
||
| from .constants import ENDPOINTS | ||
|
|
||
| T = TypeVar("T", str, bytes, dict[Any, Any]) |
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.
Potential future change: make T unbounded so that the user can request a specific type of dict. The tradeoff is we'd the static check on whether get_file_contents was called with a supported type - it would be replaced with a runtime check.
|
Let's ignore project codecov since patch is 100% |
Relm-Arrowny
left a comment
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.
Looks good, I spotted a couple of typos
Relm-Arrowny
left a comment
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.
Looks good to me.
Fixes #86 and #87
To test:
daq-config-serverin the devcontainerpytest ., and confirm both unit and system tests passConfigServer()client, callingget_file_contents(), and checking the static typing works as expected