Skip to content

Update pycurl-related annotations#3638

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
Psychosoc1al:pycurl_types_update
Jun 22, 2026
Merged

Update pycurl-related annotations#3638
bdarnell merged 1 commit into
tornadoweb:masterfrom
Psychosoc1al:pycurl_types_update

Conversation

@Psychosoc1al

Copy link
Copy Markdown
Contributor

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

@bdarnell

Copy link
Copy Markdown
Member

Thanks!

@bdarnell bdarnell merged commit e952004 into tornadoweb:master Jun 22, 2026
30 of 31 checks passed
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.

2 participants