FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove BinaryIO.write() by srittau · Pull Request #4203 · python/typeshed · GitHub

Repository navigation

Remove BinaryIO.write() - #4203

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
srittau:binary-io-write
Jun 8, 2020
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
srittau:binary-io-write

Conversation

srittau commented Jun 8, 2020

Copy link
Copy Markdown
Collaborator

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

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

JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This makes sense to me but I'm worried there may be unforeseen impacts. We'll see I guess.

JelleZijlstra merged commit 206bff4 into python:master Jun 8, 2020
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
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
srittau deleted the binary-io-write branch July 30, 2020 16:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Cannot infer type argument 1 of "shutil.copyfileobj" with mypy 0.780

2 participants


Back | FazBrowse Home | New Git URL