Files
typeshed/third_party/2and3
Philipp Hahn 548dbbbc71 yaml.dump(..., stream) is optional (#2289)
Depending on if a "stream" or the "encoding" is given, the functions
either return None, str/unicode or bytes.
Use @overload fix distinguish those cases.

Also fix the functions using **kwds as they delegate their work to the
more generic functions: copy their signatures.

* yaml.dump(): Drop distinguishing encoding

As far as I know it's currently impossible to use "overloads with return
types depending on optional arguments" (Issue #5621). As "encoding" is
in the middle of 11 optional arguments, it would require ~ 2^6 overloads
for each of those 6 functions.

For now just return Any and wait for Issue #5621 to get fixed.
2019-05-06 10:10:11 -04:00
..
2019-03-11 00:11:26 +01:00
2016-01-16 16:56:25 -05:00
2019-03-10 21:08:46 -07:00
2018-11-21 22:04:00 +01:00
2019-05-02 11:45:04 +02:00
2016-01-16 16:56:25 -05:00
2018-06-11 19:50:56 -07:00
2018-12-17 19:16:25 +01:00
2018-03-20 15:32:50 -07:00
2018-08-02 23:02:49 -07:00