Bug report
Bug description:
AnyStr is deprecated (#105578), but IO is still using it:
|
class IO(Generic[AnyStr]): |
Seems like Python should follow its own advice here and replace it with [T: (str, bytes)].
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response