Skip to content

AsyncFile.readinto() has incorrect return type #825

@sanmai-NL

Description

@sanmai-NL

Things to check first

  • I have searched the existing issues and didn't find my bug already reported there

  • I have checked that my bug is still present in the latest release

AnyIO version

4.6.2.post1

Python version

3.12.6

What happened?

For one, AsyncFile.readinto() was declared to return the generic type parameter rather than int, the number of bytes written like the standard library method. Should this method even be available for text IO?

How can we reproduce the bug?

N.A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions