Skip to content

Incorrect typing using AnyStr #451

@Brandieee

Description

@Brandieee

AnyStr in the current code base is used incorrectly, almost as directly outlined in the documentation how not to use it.
https://docs.python.org/3.14/library/typing.html#typing.AnyStr

It is also deprecated as of python 3.13

It should be replaced with the correct str | bytes union instead.

Environment:

  • Python version: >3.9
  • Quart version: 0.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions