Skip to content

[httplib2] Replace FloatInt with proper types - #17040

Open
alienxviking wants to merge 1 commit into
python:mainfrom
alienxviking:httplib2-floatint
Open

alienxviking wants to merge 1 commit into
python:mainfrom
alienxviking:httplib2-floatint

Conversation

@alienxviking

@alienxviking alienxviking commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Part of #16059.

  • The timeout arguments (has_timeout(), HTTPSConnectionWithTimeout.__init__(), Http.__init__()) become float | int | None, and so does the Http.timeout attribute, which stores the argument unchanged (source).
  • Http.limit_kwargs becomes dict[str, float | int]: hard_limit, safe_limit and chunk_size are converted with int() and ratio with float() (source).

Assisted by Claude Code.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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