Guido van Rossum
08d1069d6b
Since 2.6, the plistlib module is not Mac-specific.
2016-09-13 13:34:40 -07:00
Alvaro Caceres
0321b2179b
Declare logging.root -- undocumented but used. ( #534 )
2016-09-12 10:21:16 -07:00
Matthias Kramm
e70be5fbe2
trim pytype testing blacklist ( #527 )
2016-09-09 06:30:36 -07:00
Valérian Rousset
1d5b35b2a5
Merge tarfile ( #467 )
2016-09-03 08:40:45 -07:00
Elazar
f1047ec005
Stub: asyncore.pyi ( #498 )
...
* Stub: asyncore.pyi
I can't really test this stub since I don't use this module. I believe it's not far from the real thing.
It's based on the source code and not on the documentation.
https://hg.python.org/cpython/file/default/Lib/asyncore.py
* Option ->Optional
* add hint to count, remove addr
* make read/write explicit functions
* add synchat.pyi, move to 2and3
* change sys.version_info test
* try reversing the syntax
2016-08-26 13:34:42 -07:00
Guido van Rossum
73bdb705bf
Delete ctypes. It is not yet ready for prime time, alas.
...
See https://github.com/python/typeshed/issues/475
2016-08-24 10:56:23 -07:00
Valérian Rousset
9f1e90b33f
Merge bisect ( #468 )
...
* merge bisect
* comment while mypy#2035
2016-08-24 06:07:40 -07:00
David Euresti
ff86b1bd26
Remove empty wintypes module which just causes imports to break ( #490 )
2016-08-22 08:48:33 -07:00
Tom Manderson
9fd0fd97c6
Make FileType valid for ArgumentParser 'type' arg ( #473 )
2016-08-15 11:42:48 -07:00
Tyler O'Meara
1bb090d6f8
Adds logging PlaceHolder class and Logger attributes ( #472 )
...
Adds several attributes which were missing from the Logger types,
including "name", "level", and "parent". Because the type of "parent"
is a union of Logger and PlaceHolder, we also define types for
PlaceHolder and all of it's methods.
2016-08-15 11:42:02 -07:00
Valérian Rousset
17f7d3db20
Add ctypes ( #454 )
...
* util done
* __init__, 16.16.2.2 done
* 16.16.2.3 done
* 16.16.2.4
* fix *FUNCTYPE, fix generic
* remove part of generic
* temporarly broad some type
* 16.16.2.5
* 16.16.2.6
* 16.16.2.7
* 16.16.2.8
* 16.16.2.9 and cleanup
* no documentation on wintypes
* move from _SimpleCData to _CData
* base on some example
* py2 done, cleanup
* make pytype happy
2016-08-15 11:39:23 -07:00
Valérian Rousset
2824cd1197
Improve locale ( #462 )
2016-08-10 13:52:29 -07:00
Valérian Rousset
59d06de83e
add rlcompleter ( #455 )
2016-08-10 13:39:38 -07:00
Valérian Rousset
ebdf9d68b2
add termios ( #456 )
2016-08-10 12:09:54 -07:00
Valérian Rousset
4e55f0561f
Improve traceback ( #465 )
2016-08-10 11:18:35 -07:00
David Euresti
5de7bfe185
Add missing classes to distutils.version ( #450 )
2016-08-05 14:50:14 -07:00
Valérian Rousset
e3a1ddfbeb
add readline module ( #448 )
2016-08-05 12:04:01 -07:00
Valérian Rousset
4fa352e6fa
add keyword module ( #446 )
2016-08-05 12:03:21 -07:00
Valérian Rousset
a1e1d6c355
Add code ( #447 )
...
* 30.1.0
* 30.1.1
* 30.1.2
2016-08-05 07:55:43 -07:00
Valérian Rousset
5a5138aa1e
Add stubs for pkgutils ( #431 )
...
* py3 done (py2 pass empty)
* remove dangling importlib
* importlib.abc only exists in py3
2016-08-03 15:40:37 -07:00
Valérian Rousset
2e560d38dc
Improve distutils ( #418 )
...
* remove old distutils
* core done
* ccompiler done
* compilers done
* archive_util done
* dep_util done
* dir_util done
* file_util done
* util done
* dist done
* debug, error, extension done
* fancy_getopt done
* filelist, log, spawn done
* sysconfig done
* text_file done
* version done
* cmd done
* add command
* add emxccompiler which is py2 only
* command.build_py have spec only in py3
* make pytype happy by resolving relative import
2016-08-03 15:38:15 -07:00
Valérian Rousset
2c21f27310
Add plistlib ( #433 )
...
* py3 done
* py2 done
* fix by matthiaskramm
* remove plistlib from pytype checking
* add unicode for path in py2
* add readPlistFromString (and write) in py2
2016-08-02 14:52:26 -07:00
Guido van Rossum
53f0ed7e68
Fix signature of nested() -- it actually returns a list of values.
...
To be on the conservative side I'm making it an Iterable of values;
this should be good enough for common usages.
The types of the values actually correspond to the types of the
argument ContextManagers, but a proper signature would require
variadic type variables (https://github.com/python/typing/issues/193 ),
which isn't worth waiting for. :-)
2016-08-02 12:03:58 -07:00
Guido van Rossum
1e1694276c
Oops, should use ... not None.
2016-08-02 11:06:52 -07:00
Guido van Rossum
2bb6856456
Change local to type Any and add link to mypy bug.
2016-08-02 10:59:11 -07:00
Guido van Rossum
9debde04e9
Make type of threading.locals more lenient.
2016-08-02 09:39:00 -07:00
Guido van Rossum
47f2746526
Fix the definitions of BadZip{f,F}ile. ( #432 )
...
In 2.7, only BadZipfile exists. In 3.x, both exist.
2016-08-02 09:04:45 -07:00
Guido van Rossum
6e596e9609
Fix decimal and contextlib ( #428 )
...
* Decimal does not support __round__, and its __abs__ returns Decimal.
* Fix contextmanager signature too.
2016-08-02 07:39:13 -07:00
Valérian Rousset
ee02a8a968
Improve threading ( #403 )
...
* initial stubgen
* comment everything
* 17.1.0 done
* 17.1.1 done
* 17.1.2 done
* 17.1.3 done
* 17.1.4 done
* 17.1.5 done
* reorder __enter__, __exit__
* 17.1.6 done
* 17.1.7 done
* 17.1.8 done
* 17.1.9 done
* cleanup, py3 done
* py2 begin, comment everything
* 16.2.0 done
* 16.2.1 done
* 16.2.2 done
* 16.2.3 done
* 16.2.4 done
* 16.2.5 done
* 16.2.6 done
* 16.2.7 done
* cleanup, py2 done
* remove old threading stubs
* use --strict-optional
* improve Condition.wait_for
* remove type ignore
2016-08-01 14:31:57 -07:00
Alvaro Caceres
4c20cd6711
2and3/mmap.pyi : remove "type: ignore" ( #425 )
...
First was for mypy compatibility, but is no longer needed.
Second is removed by going inheriting (Iterable[bytes],
Container[bytes], Sized, Reversible[bytes]) instead of
Sequence[bytes]. Should presumably catch more errors when using __getattr__
2016-08-01 14:20:37 -07:00
Valérian Rousset
1bd78d4aab
Improve contextlib ( #406 )
...
* remove old, new stubgen
* comment everything
* contextlib done
* use TypeVar instead of overload
* py2 done
2016-07-29 15:26:14 -07:00
Valérian Rousset
417230043e
add colorsys ( #419 )
...
* add colorsys
* add undocumented constants
2016-07-29 08:02:24 -07:00
Valérian Rousset
0fea15ea29
Add mmap ( #412 )
...
* py3 done
* have to have specific version, to much changes
* py2 done
* merge py2 and py3 version
* fix duplicate definition in mypy
* apply version specific def
* rename ContextManager, single line for import
2016-07-29 06:47:23 -07:00
Valérian Rousset
6c6f5f19da
apply conditionals ( #417 )
2016-07-29 05:59:26 -07:00
Valérian Rousset
cfde32b93f
Add mimetypes ( #404 )
...
* remove old mimetypes, new stubgen
* reorder, cleanup
* py3 pass (py2 pass empty)
2016-07-29 05:50:46 -07:00
Valérian Rousset
557579da36
merge py2 and py3 errno ( #413 )
2016-07-28 06:15:22 -07:00
Guido van Rossum
39325bf159
Mypy now supports sys.platform and sys.version_info checks ( #410 )
2016-07-27 13:25:29 -07:00
Valérian Rousset
cd413c502c
Add hmac ( #402 )
2016-07-26 08:40:04 -07:00
Valérian Rousset
56760eda52
Improve iterators ( #405 )
...
Mainly reorder the stub, adding some missing method and having some other being version dependent.
I've also, in 30f395e, specialized some function, specifying it for Sequence and Mapping, which is not strictly correct (because any class having `__getitem__` should get accepted) but is way more useful that simply having Any.
2016-07-26 07:41:08 -07:00
jdelic
ba69b32d06
argparse stub fix: parse_known_args takes an optional sequence of strings like parse_args(), not an optional string ( #386 )
...
* parse_known_args takes an optional sequence of strings like parse_args, not an optional string
2016-07-22 14:39:56 -07:00
jdelic
791966a65a
argparse stub fix: allow subclasses of Action in add_argument(action=...) ( #385 )
...
The action was incorrectly typed as allowing instances of Action -- the correct type is subclasses of Action. (And str.)
2016-07-22 14:38:24 -07:00
jdelic
05cd6ec5fa
List should probably be Sequence ( #387 )
2016-07-22 13:19:49 -07:00
jdelic
4f7c9ce432
argparse stub fix: values parameter of Action can also be str and None ( #388 )
...
* values can be a str, too
* values should probably use Sequence
2016-07-22 10:58:59 -07:00
alvarocaceres
f7b35bc8be
Remove line continuations to help pytype parse ( #390 )
2016-07-22 10:55:42 -07:00
Valérian Rousset
0863590721
add site ( #389 )
2016-07-22 07:38:17 -07:00
Fabian Heredia Montiel
d787dbe984
Add conditional floor for Python 3.x ( #380 )
2016-07-21 11:08:21 -07:00
alvarocaceres
ac5916c170
Tweak version tests to help pytype parse them ( #374 )
2016-07-19 07:43:35 -07:00
Valérian Rousset
61f232c7d8
add py3 version to zipimport ( #305 )
2016-07-17 21:05:05 -07:00
Valérian Rousset
8ef221c162
add zipfile for py2 ( #345 )
2016-07-15 05:55:20 -07:00
Jukka Lehtosalo
e05edb60f1
Mypy stub fixes for strict optional mode ( #366 )
2016-07-13 09:38:40 -07:00