Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yaml.dump(..., stream) is optional #2288

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

Closed
wants to merge 1 commit into from
Closed

Conversation

pmhahn
Copy link
Contributor

@pmhahn pmhahn commented Jun 28, 2018

http://pyyaml.org/wiki/PyYAMLDocumentation#dumping-yaml

yaml.dump accepts the second optional argument, which must be an open
text or binary file.

<http://pyyaml.org/wiki/PyYAMLDocumentation#dumping-yaml>
> yaml.dump accepts the second *optional* argument, which must be an open
> text or binary file.
@JelleZijlstra
Copy link
Member

Thanks for your contribution! I don't think the documentation you cite is persuasive, because it could as well be referring to an optional argument in the sense of one that may be omitted, not of one that may be None.

But these functions do in fact accept None as an argument, so I'll merge this as soon as Travis passes.

@pmhahn pmhahn closed this Jun 28, 2018
@JelleZijlstra
Copy link
Member

No need to close the PR; I would actually like to get this fix into typeshed.

@pmhahn
Copy link
Contributor Author

pmhahn commented Jun 28, 2018

I missed two other functions and had to ammend the commit. I canceled the pull request to not waste your time, but you're too fast ;-) See #2289

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.

2 participants