Skip to content

Conversation

@jkhsjdhjs
Copy link

Now that werkzeug 3.0.3 has been released, which contains a fix for pallets/werkzeug#2836, we require werkzeug 3.0.3 as the minimum version and remove the type: ignore comments, that were introduced to work around this issue.

Furthermore, fix the type hint of WSGIApp._get_slice() and make two other type: ignore comments more explicit.

Werkzeug 3.0.3 contains a fix for [1], so by requiring at least 3.0.3,
we can remove unnecessary 'type: ignore' comments from the http adapter.

[1]: pallets/werkzeug#2836
Remove 'type: ignore' comments now that we require werkzeug >=3.0.3 [1].
Furthermore, fix the type hint of `WSGIApp._get_slice()` and make two
other 'type: ignore' comments more explicit.

[1]: pallets/werkzeug#2836
@jkhsjdhjs jkhsjdhjs force-pushed the http_api/fix_type_ignore_comments branch from c5a97e2 to 5191fef Compare June 20, 2024 13:16
Copy link

@Frosty2500 Frosty2500 left a comment

Choose a reason for hiding this comment

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

LGTM

@Frosty2500 Frosty2500 merged commit f57a640 into feature/http_api Jun 20, 2024
@Frosty2500 Frosty2500 deleted the http_api/fix_type_ignore_comments branch June 20, 2024 19:17
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.

3 participants