Files
typeshed/stdlib/2and3
strager e404bc7cd6 Allow pathlib.Path in zipfile.ZipFile (#2238)
`zipfile.ZipFile` is typed to accept `Text` for local and archive file
paths. In Python 3.6, several `ZipFile` methods accept `pathlib.Path`
objects, not just `str` objects. Generalize `ZipFile`'s methods so code
using `pathlib.Path` with `ZipFile` type-checks.

I verified (using my own project) that the following methods work with
os.PurePath at runtime on CPython 3.6:

* zipfile.ZipInfo.__init__
* zipfile.ZipInfo.extractall
* zipfile.ZipInfo.write
2018-06-18 08:29:23 -07:00
..
2018-05-28 08:08:27 -07:00
2017-05-01 07:51:08 -07:00
2018-06-17 17:21:17 +01:00
2017-04-04 20:14:07 -07:00
2017-10-25 09:46:25 -07:00
2016-12-20 00:16:44 -08:00
2017-04-24 15:05:02 -07:00
2016-12-19 23:53:19 -08:00
2017-04-05 13:54:05 -07:00
2016-07-29 08:02:24 -07:00
2017-04-24 15:05:02 -07:00
2017-05-23 16:34:34 -07:00
2016-12-19 22:09:35 -08:00
2017-07-18 19:19:14 -07:00
2017-06-01 17:36:32 -07:00
2016-08-05 12:03:21 -07:00
2016-12-21 01:06:52 -08:00
2018-06-11 11:26:32 -07:00
2016-12-19 23:53:19 -08:00
2017-04-27 08:14:21 -07:00
2018-04-06 11:11:29 -07:00
2017-04-24 13:55:33 -07:00
2017-05-30 21:43:30 -07:00
2017-03-19 13:05:07 -07:00
2017-03-19 13:08:54 -07:00
2016-08-05 12:04:01 -07:00
2016-07-22 07:38:17 -07:00
2017-03-23 08:23:06 -07:00
2018-05-31 21:44:42 -07:00
2018-04-06 11:09:45 -07:00
2017-05-25 19:39:15 -07:00
2017-03-23 08:23:52 -07:00
2018-04-06 11:11:29 -07:00
2017-03-23 08:25:38 -07:00
2016-12-19 22:09:35 -08:00
2018-04-06 11:09:11 -07:00
2017-03-23 08:25:56 -07:00
2017-03-21 05:54:48 -07:00
2017-03-19 17:35:31 -07:00
2018-04-06 11:09:11 -07:00
2017-12-13 08:20:47 -08:00
2017-03-20 20:32:44 -07:00
2016-12-19 21:52:56 -08:00