Skip to content
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

✏️ Fix ping parameters annotation in Config class #1127

Merged
merged 2 commits into from Jul 19, 2021
Merged

✏️ Fix ping parameters annotation in Config class #1127

merged 2 commits into from Jul 19, 2021

Conversation

Kludex
Copy link
Sponsor Member

@Kludex Kludex commented Jul 18, 2021

Hard to find 😅

@graingert
Copy link
Member

https://github.com/aaugustin/websockets/blob/361f38066622636eff8d9e0d3d071e93e8e02b05/src/websockets/legacy/protocol.py#L1097 actually pretty sure they should be optional to allow for disabling ping?

@@ -145,8 +145,8 @@ def __init__(
http: Union[Type[asyncio.Protocol], HTTPProtocolType] = "auto",
ws: Union[Type[asyncio.Protocol], WSProtocolType] = "auto",
ws_max_size: int = 16 * 1024 * 1024,
ws_ping_interval: int = 20,
ws_ping_timeout: int = 20,
ws_ping_interval: float = 20,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@graingert graingert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should be Optional [float]

@Kludex
Copy link
Sponsor Member Author

Kludex commented Jul 18, 2021

@graingert True! Thanks for the review! I'm going to push the fix later on.

@Kludex Kludex merged commit 3a5c3b8 into encode:master Jul 19, 2021
@Kludex Kludex changed the title ✏️ Fix Config init function annotation ✏️ Fix ping parameters annotation in Config class Jul 19, 2021
Kludex added a commit that referenced this pull request Nov 17, 2021
* ✏️ Fix Config init function annotation

* add optional to ping parameters
Kludex added a commit to sephioh/uvicorn that referenced this pull request Oct 29, 2022
* ✏️ Fix Config init function annotation

* add optional to ping parameters
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.

None yet

2 participants