Skip to content

Allow multidict 7 - #1226

Open
itzzdev09 wants to merge 1 commit into
python-openapi:masterfrom
itzzdev09:allow-multidict-7
Open

itzzdev09 wants to merge 1 commit into
python-openapi:masterfrom
itzzdev09:allow-multidict-7

Conversation

@itzzdev09

Copy link
Copy Markdown

The aiohttp extra pins multidict = "^6.0.4" (i.e. <7). multidict 7.0.0 came out on 26 Sep and aiohttp already allows it (multidict>=4.5,<8.0), so openapi-core[aiohttp] is what keeps environments on multidict 6.

openapi-core only uses multidict.CIMultiDict as the type of AIOHTTPOpenAPIWebResponse.headers. multidict 7's breaking changes are that istr can no longer be subclassed and that the C extension rejects an argument passed both positionally and by keyword; neither applies here. This changes the constraint to >=6.0.4,<8. poetry.lock changes only in content-hash (Poetry 2.4.1, the version in its header; locked versions unchanged).

Tests: pytest tests/integration/contrib/aiohttp tests/unit/contrib/aiohttp on Python 3.12 with the aiohttp extra: 11 passed / 2 skipped with both multidict 6.9.1 and 7.0.0.

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