| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
write() is inherited from IO[bytes], where it's defined as `def write(self, s: AnyStr) -> int: ...`. If AnyStr is bytes, this should accept bytes, bytearray, and memoryview, so the overload is unnecessary. Closes: python#4201
There was a problem hiding this comment.
This makes sense to me but I'm worried there may be unforeseen impacts. We'll see I guess.
Sorry, something went wrong.
write() is inherited from IO[bytes], where it's defined as `def write(self, s: AnyStr) -> int: ...`. If AnyStr is bytes, this should accept bytes, bytearray, and memoryview, so the overload is unnecessary. Closes: python#4201
| Back | FazBrowse Home | New Git URL |
write() is inherited from IO[bytes], where it's defined as
def write(self, s: AnyStr) -> int: .... If AnyStr is bytes,
this should accept bytes, bytearray, and memoryview, so the
overload is unnecessary.
Closes: #4201