Bruce Merry
ec6116dfa4
Update mmap stubs for newer Python versions ( #4244 )
...
* Update mmap stubs for newer Python versions
Based on the Python stdlib documentation:
- Since Python 3.5, mmap.{find,rfind,write} all accept any bytes-like.
I've used the _typeshed.ReadableBuffer alias defined in #4232 .
- Since Python 3.6, mmap.write returns the number of bytes written.
- Since Python 3.3, mmap.read allows None as the parameter; while in
Python 2 the argument cannot be omitted.
* Further clean up mmap.pyi
Use the fact that Python 3.0-3.4 are no longer supported to clean up the
version-dependent logic. Functions that always have different signatures
in Python 2/3 are moved from the base _mmap[bytes] to the mmap subclass.
2020-06-21 13:37:19 -07:00
..
2020-06-19 12:45:12 +02:00
2020-05-27 20:21:45 -07:00
2020-02-21 21:27:42 -08:00
2020-06-02 14:08:54 -07:00
2019-10-12 02:45:43 +02:00
2020-06-10 20:57:09 -07:00
2020-06-10 20:57:09 -07:00
2020-06-10 21:23:58 -07:00
2020-06-14 20:44:48 +02:00
2020-03-12 13:48:20 +01:00
2020-06-04 15:38:45 -07:00
2020-06-14 20:44:48 +02:00
2019-12-03 13:17:03 +01:00
2020-05-24 17:53:03 -07:00
2020-05-28 18:57:32 -07:00
2020-01-22 17:11:52 -08:00
2020-06-06 08:45:37 -07:00
2020-05-27 19:52:14 -07:00
2020-02-01 09:28:54 -08:00
2020-04-22 20:02:19 +02:00
2020-02-01 09:28:15 -08:00
2019-12-21 12:29:34 -08:00
2018-09-25 20:23:02 -07:00
2019-09-29 09:15:27 -07:00
2020-05-27 21:42:32 -07:00
2019-12-21 14:48:00 -08:00
2020-06-04 16:00:52 -07:00
2020-06-04 18:32:24 -07:00
2019-04-13 10:40:52 +02:00
2020-06-11 09:10:52 +02:00
2020-01-25 20:06:53 -08:00
2020-05-24 18:44:43 -07:00
2020-05-27 21:42:45 -07:00
2020-02-21 21:19:08 -08:00
2019-04-13 10:40:52 +02:00
2020-05-17 08:52:37 -07:00
2020-06-19 12:37:43 +02:00
2020-06-10 20:57:09 -07:00
2019-04-13 10:40:52 +02:00
2020-06-08 20:40:14 -07:00
2020-06-10 20:57:09 -07:00
2019-04-13 10:40:52 +02:00
2020-01-25 22:18:23 -08:00
2020-01-18 07:39:35 -08:00
2018-04-06 07:02:58 -07:00
2020-06-10 21:23:58 -07:00
2019-04-13 10:40:52 +02:00
2019-04-13 10:40:52 +02:00
2020-06-14 07:58:26 -07:00
2017-04-24 15:05:02 -07:00
2020-06-10 20:57:09 -07:00
2019-10-20 10:37:33 +02:00
2020-02-21 20:50:02 -08:00
2020-05-03 23:13:22 +02:00
2020-05-27 10:10:51 +02:00
2020-05-24 17:41:45 -07:00
2020-05-17 08:59:11 -07:00
2020-03-17 19:44:51 +01:00
2020-01-18 07:42:32 -08:00
2019-09-23 18:24:05 +02:00
2020-03-22 08:53:14 -07:00
2020-06-10 20:57:09 -07:00
2020-02-02 22:06:40 -08:00
2020-05-25 15:29:28 -07:00
2020-06-14 20:44:48 +02:00
2020-05-16 16:56:40 -07:00
2019-10-20 10:37:33 +02:00
2020-06-02 14:08:54 -07:00
2020-06-10 21:23:58 -07:00
2020-03-06 12:51:37 +01:00
2019-04-13 10:40:52 +02:00
2018-02-13 16:19:44 -08:00
2020-03-22 08:53:32 -07:00
2020-06-10 20:57:09 -07:00
2020-06-10 20:57:09 -07:00
2019-11-25 19:46:28 -08:00
2020-02-21 20:39:30 -08:00
2020-01-19 21:04:43 +01:00
2020-03-22 11:50:48 -07:00
2020-06-21 13:37:19 -07:00
2020-02-21 21:27:56 -08:00
2020-05-27 10:05:33 +02:00
2018-05-06 10:25:40 +01:00
2018-06-11 11:26:32 -07:00
2020-06-10 20:57:09 -07:00
2019-08-17 07:23:04 -07:00
2020-05-17 07:20:28 -07:00
2020-06-20 16:41:46 -07:00
2020-04-10 00:17:34 +02:00
2020-06-10 20:57:09 -07:00
2020-03-06 11:07:52 +01:00
2020-02-22 18:22:54 +01:00
2017-04-27 08:14:21 -07:00
2019-10-20 10:37:33 +02:00
2020-06-10 20:57:09 -07:00
2018-06-28 10:29:45 -07:00
2020-06-10 20:57:09 -07:00
2020-01-20 09:02:23 +01:00
2020-06-10 20:57:09 -07:00
2020-06-10 20:57:09 -07:00
2017-04-24 13:55:33 -07:00
2019-06-05 11:59:32 +02:00
2020-02-21 20:25:23 -08:00
2020-05-17 08:25:18 -07:00
2020-06-14 20:44:48 +02:00
2017-03-19 13:08:54 -07:00
2016-08-05 12:04:01 -07:00
2018-05-09 22:12:02 -07:00
2019-10-20 10:37:33 +02:00
2020-06-11 09:10:52 +02:00
2020-06-14 20:44:48 +02:00
2019-04-13 10:40:52 +02:00
2019-12-01 05:22:49 -08:00
2020-06-10 20:57:09 -07:00
2020-06-10 21:23:58 -07:00
2019-09-29 09:15:27 -07:00
2020-06-19 17:41:28 -07:00
2017-03-23 08:25:09 -07:00
2020-02-29 14:42:04 +01:00
2020-05-24 17:34:48 -07:00
2017-05-25 19:39:15 -07:00
2020-06-14 07:58:26 -07:00
2019-04-13 10:40:52 +02:00
2020-06-10 20:57:09 -07:00
2020-06-10 20:57:09 -07:00
2019-04-13 10:40:52 +02:00
2020-06-11 09:10:52 +02:00
2020-02-27 19:18:54 -08:00
2020-05-27 19:52:14 -07:00
2020-05-27 09:51:37 +02:00
2019-04-13 10:40:52 +02:00
2020-02-21 20:38:01 -08:00
2020-06-10 20:57:09 -07:00
2020-06-14 20:44:48 +02:00
2019-04-13 10:40:52 +02:00
2020-01-29 11:17:16 +01:00
2019-10-14 09:53:48 +02:00
2020-02-05 13:06:31 +01:00
2020-05-16 21:30:45 -07:00
2020-06-17 17:44:09 -07:00
2020-05-24 17:40:20 -07:00
2017-05-24 20:35:16 -07:00
2020-01-30 18:55:57 -08:00
2020-06-10 21:23:58 -07:00
2019-04-13 10:40:52 +02:00
2020-06-10 20:57:09 -07:00
2020-02-01 13:44:55 -08:00
2020-04-05 09:02:02 -07:00