Skip to content

Remove invalid uses of AnyStr - #452

Merged
pgjones merged 1 commit into
pallets:mainfrom
Brandieee:feature/fix-anystr-typing
Jul 22, 2026
Merged

Remove invalid uses of AnyStr#452
pgjones merged 1 commit into
pallets:mainfrom
Brandieee:feature/fix-anystr-typing

Conversation

@Brandieee

@Brandieee Brandieee commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

As mentioned in issue, AnyStr is consistently used as outlined by the python docs how not to use it:
https://docs.python.org/3.14/library/typing.html#typing.AnyStr
and deprecated as of 3.13

This PR changes any occurences of AnyStr to str | bytes instead

fixes #451

@pgjones
pgjones merged commit 0d50f0c into pallets:main Jul 22, 2026
10 checks passed
@pgjones

pgjones commented Jul 22, 2026

Copy link
Copy Markdown
Member

Thanks

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.

Incorrect typing using AnyStr

2 participants