8000 Fix type stubs in streams.pyi by smessmer · Pull Request #1252 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Fix type stubs in streams.pyi #1252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2017
Merged

Fix type stubs in streams.pyi #1252

merged 2 commits into from
May 24, 2017

Conversation

smessmer
Copy link
Contributor
@smessmer smessmer commented May 7, 2017

No description provided.

@coroutines.coroutine
def readline(self) -> Generator[Any, None, bytes]: ...
@coroutines.coroutine
def readuntil(self, separator=b'\n') -> Generator[Any, None, bytes]: ...
def readuntil(self, separator: bytes = b'\n') -> Generator[Any, None, bytes]: ...
Copy link
Member

Choose a reason for hiding this comment

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

While you're at it, can you change these defaults to ...? In stubs it doesn't matter what the default value is, just that there is one.

Copy link
Contributor
@matthiaskramm matthiaskramm left a comment

Choose a reason for hiding this comment

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

What Jelle said. I think = b'\n' might actually break pytype.

@JelleZijlstra
Copy link
Member

My changes from #1305 supersede the controversial part of this PR. I'll merge it now once Travis passes.

@JelleZijlstra JelleZijlstra dismissed matthiaskramm’s stale review May 24, 2017 06:14

the issue is fixed

@JelleZijlstra JelleZijlstra merged commit 3cfc146 into python:master May 24, 2017
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.

3 participants
0