Commit Graph
11 Commits
Author SHA1 Message Date
hashstatandMatthias Kramm c366a1be55 Merge v2 and v3 array stubs (#1670)
See #1608
2017-10-25 09:46:25 -07:00
hashstatandJelle Zijlstra 6accffca28 popen() is function, not method, so remove self argument (#1671) 2017-10-12 12:16:14 -07:00
hashstatandJelle Zijlstra d333474ed9 Update and add stubs for os module (#1645) 2017-10-09 21:02:10 -07:00
hashstatandJelle Zijlstra 0349f9becd Add additional type annotations to ipaddress stub (#1654)
Makes heavier use of generics to minimize code. Fixes some incorrect
types. Also reordered to allow easy comparison against class listings
and documentation.
2017-10-09 21:00:07 -07:00
hashstatandMatthias Kramm 29473745a8 Implement array.array as a MutableSequence (#1649)
It also improves the type checking of contained values. Some methods
were removed because they are implemented by a base class (i.e.,
*__iter__()*, *__str__()*, and *__contains__()*).  *__hash__()* was
removed because arrays are unhashable types.
2017-10-09 10:12:01 -07:00
hashstatandJelle Zijlstra 0917560195 Add new methods to socket stubs. (#1638)
* Add new methods to socket stubs.

Also fix a couple of invalid types in recv*_into() socket methods.

* Add double-underscores to parameters for position-only arguments
2017-10-07 08:41:06 -07:00
hashstatandJelle Zijlstra 97b16a0b34 itertools.count() can take floats as well as ints (#1650) 2017-10-07 08:30:07 -07:00
hashstatandJelle Zijlstra f48731ac7a Add stub for standard library crypt module (#1641) 2017-10-04 20:39:33 -07:00
hashstatandJelle Zijlstra 6661377597 Ensure AF_*, SOCK_*, AI_*, and MSG_* constants use enum types (#1637) 2017-10-04 08:55:36 -07:00
hashstatandJelle Zijlstra fc74f53c5a Corrects timeout type annotations. (#1639)
Timeouts should be floats, but were ints for some reason.
2017-10-04 08:40:40 -07:00
hashstatandJelle Zijlstra 15f737d2a8 Corrects return type of warnings.formatwarning(). (#1640) 2017-10-04 08:37:08 -07:00