Skip to content

[Superseded] Move type definitions to a dedicated module - #881

Closed
florimondmanca wants to merge 5 commits into
masterfrom
types-module
Closed

[Superseded] Move type definitions to a dedicated module#881
florimondmanca wants to merge 5 commits into
masterfrom
types-module

Conversation

@florimondmanca

Copy link
Copy Markdown
Contributor

Refs https://github.com/encode/httpx/issues/789#issuecomment-578143085

Also improves/fixes the typing information in the multipart stream implementation, as some of it was actually wrong.

@florimondmancaflorimondmanca added the refactor Issues and PRs related to code refactoring label Mar 28, 2020
@florimondmanca
florimondmanca requested a review from a teamMarch 28, 2020 09:12
@florimondmancaflorimondmanca mentioned this pull request Mar 28, 2020
Comment on lines +284 to +285
for name, filevalue in files.items():
yield self.FileField(name=name, value=filevalue)

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Different variable name to value is required of mypy would complain that the value in data doesn't have the same type as the value in files (but ideally we don't want to just use Any here).

@florimondmanca

Copy link
Copy Markdown
ContributorAuthor

Realizing that this might become largely reduced in scope once #804 is in, so let's wait…

@florimondmanca
florimondmanca deleted the types-module branch April 10, 2020 19:01
@florimondmancaflorimondmanca changed the title Move type definitions to a dedicated module[Superseded] Move type definitions to a dedicated moduleApr 10, 2020
@florimondmanca

Copy link
Copy Markdown
ContributorAuthor

Closed in favor of #902

Kludex referenced this pull request in pydantic/httpx2 May 11, 2026
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.9 to 0.2.1.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.1.9...v0.2.1)
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactorIssues and PRs related to code refactoring

Development

Successfully merging this pull request may close these issues.

1 participant

@florimondmanca