Commit Graph

20 Commits

Author SHA1 Message Date
PeterJCLaw
10b14c654c Add type stub for the lzma module (#1844)
* Add type stub for the lzma module

* Claim to extend BinaryIO to resolve test failures

This doesn't record the true hierarchy of the type, though avoids
errors from mypy that 'Argument 1 of "read" incompatible with
supertype "BufferedIOBase"'.
2018-02-01 14:36:42 -08:00
Michel Albert
5264fa6d5d Fix return-type of _BaseNetwork.supernet() (#1822)
The return type is currently defined as iterator, while it in fact returns a
network instance.
2018-01-11 08:24:11 -08:00
hashstat
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
mpage
dca968102e Fix stub for the ipaddress module (#1384)
* Fix stub for the ipaddress module

All methods that accept an "address" work on arbitrary objects. They
call str() on them and attempt to parse the result. As such, the type
of "address" should be object.
2017-06-02 12:49:12 -07:00
Doug Freed
56f3d66f47 ipaddress: make _BaseAddress subclass SupportsInt (#1361) 2017-05-26 09:36:29 -07:00
Emily Morehouse
b6d08b81a3 #1286 Remove header comments from stubs (#1292)
- Updates documentation related to previously required comment headers.
- Removes all comment headers from stubs
- Occasionally included a header for stubs that were noted to be incomplete or contained todo's.
2017-05-22 15:14:15 -07:00
Yusuke Miyazaki
d7dd9fb832 Update stub for ipaddress (#1251) 2017-05-08 16:28:04 -07:00
Valérian Rousset
fe15d91041 merge */xml/etree into 2and3/xml/etree (#899)
Fixes #287.
2017-01-30 13:19:28 -08:00
Lukasz Langa
82b2d8e3bc Fixing flake8 F403, F405 errors 2016-12-20 02:28:12 -08:00
Lukasz Langa
fe0e3744cc Fixing flake8 E261 errors 2016-12-19 22:09:35 -08:00
tewe
c84c138194 Annotate **kwargs with dictionary value type only (#320) 2016-06-29 08:43:13 -07:00
James J Porter
2b55989f7d make xml.etree.ElementTree.Element a Sequence (#254) 2016-06-04 19:28:22 -07:00
Valérian Rousset
9fdac6e0df improve io (#194)
* added types to io, some version-specific variants
* remove _io (moved the classes to io)
* remove internal, unused xml.etree._ListDataStream
2016-05-11 10:47:24 -07:00
Ismail
8d893cfae8 Make forward references strings 2016-03-09 11:58:24 +00:00
Ismail
d21c09919d Creating __init__.pyi files 2016-03-09 11:18:00 +00:00
Ismail
4c06be4972 Add files for Py 3.3 and 3.2 2016-03-09 11:09:33 +00:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
4fe8915d44 Add missing '-> None' to all __init__ methods. 2015-11-09 10:25:11 -08:00
Ben Longbons
56fe787c74 Update a bunch of stubs 2015-10-19 20:02:10 -07:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00