Skip to content

Update pycurl-related annotations#3638

Open
Psychosoc1al wants to merge 1 commit into
tornadoweb:masterfrom
Psychosoc1al:pycurl_types_update
Open

Update pycurl-related annotations#3638
Psychosoc1al wants to merge 1 commit into
tornadoweb:masterfrom
Psychosoc1al:pycurl_types_update

Conversation

@Psychosoc1al

Copy link
Copy Markdown

I recently submitted a PR to typeshed to complete the pycurl type stubs, and mypy_primer flagged a mismatch in this codebase. The error is due to a mismatch on a callback argument, which actually isn't being used.

I've made this minor change to prevent mypy from failing when the type stubs are next updated.

Additionally, I removed an 8-year-old comment about CurlMulti being incomplete, as it is no longer relevant. This required adding a small # type: ignore on a None assignment in .close(), which appears to be a common practice in this project

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.

1 participant