-
Notifications
You must be signed in to change notification settings - Fork 34
Address PR review feedback: Fix timezone handling, improve error handling, and add auth tests #1875
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
Changes from 4 commits
c632270
07a73d7
bfac34b
4b5ab57
33afeeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,15 +37,16 @@ def create_server_config( | |
| configuration_url: str | None = None, | ||
| ) -> ServerConfig: | ||
| """Generate server configuration with the provided endpoint and metadata.""" | ||
| # ServerConfig.__init__ handles the enum conversion, but mypy doesn't recognize | ||
| # this due to attrs @define decorator generating __init__ with stricter signatures, | ||
| # so we need type: ignore comments. | ||
|
||
| return ServerConfig( | ||
| server=server | ||
| if isinstance(server, Server) or server is None | ||
| else Server(server), | ||
| server=server, # type: ignore[arg-type] | ||
| name=name, | ||
| endpoint=endpoint, | ||
| manufacturer=manufacturer, | ||
| configuration_url=configuration_url, | ||
| type=type if isinstance(type, APIType) else APIType(type), | ||
| type=type, # type: ignore[arg-type] | ||
| ) | ||
|
|
||
|
|
||
|
|
||
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.
This will be a blocking call that should not happen here during runtime, that is the reason why it is moved out of this. can you revert this change?
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.
@copilot This will be a blocking call that should not happen here during runtime, that is the reason why it is moved out of this. can you revert this change?
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.
Reverted in commit 33afeeb. The SSL context is now created from the shared SSL_CONTEXT_LOCAL_API again to avoid blocking I/O during runtime.