Ismail
677a35cd54
Make pyi files work for Py3 and Py3.1
2016-03-04 16:45:07 +00:00
Ismail
335be6b94e
Add files for Py 3.3 and 3.2
2016-03-03 12:55:51 +00:00
Ismail
f3dc9dd361
Add files for Py3.5
2016-03-03 12:55:27 +00:00
Ismail
9f072a928f
Create files for Py3.4
2016-03-03 12:54:54 +00:00
Ismail
4ac61ea543
Remove unnecessary __methods__
2016-03-02 22:47:55 +00:00
Ismail
e525cd3253
Improve types on ElementPath
2016-02-29 15:28:03 +00:00
Ismail
bb3fc382a1
Type check rest of ElementTree file
2016-02-26 17:30:49 +00:00
Ismail
2def7d1382
Type check Element class
2016-02-11 12:46:05 +00:00
Ismail
59d8f58d63
Add type hints to ElementInclude.pyi
2016-02-11 11:41:58 +00:00
Guido van Rossum
2c4549fb36
Merge pull request #51 from DanielShaulov/threading
...
Some fixes to threading
2016-01-23 09:10:24 -08:00
Daniel Shaulov
e2c9ec5cb0
Merge branch 'master' into threading
...
Conflicts:
stdlib/3/threading.pyi
2016-01-23 10:34:30 +00:00
Matthias Kramm
c957fc9f17
Merge pull request #53 from timabbott/mutable
...
Fix os.environ improperly classified as not mutable for python 2.
2016-01-22 21:33:01 -08:00
Tim Abbott
c0d0f7fe14
Fix os.environ improperly classified as not mutable for python 2.
...
In Python, you can change the environment by writing to os.environ.
This seems to already be handled correctly in the python 3 type data,
so we just need to fix it for 2.7.
2016-01-22 17:47:53 -08:00
Matthias Kramm
25a3fac0fd
Fix default parameter syntax.
...
Use 'x:bool = ...' instead of 'x:bool = True' or 'x:bool = False'.
2016-01-22 16:39:15 -08:00
Daniel Shaulov
14ffe7ea17
Inherit from Any in threading.local and SimpleNamespace
2016-01-22 12:24:36 +02:00
Guido van Rossum
c83f4b57c7
Merge pull request #49 from ddfisher/master
...
Make asyncio more Generator friendly
2016-01-19 17:23:47 -08:00
David Fisher
1a10134d54
Fix up uses of Future as an argument in asyncio
...
Most functions which can take a Future can take Generators as well.
2016-01-19 16:53:52 -08:00
David Fisher
7c8797441b
Make Generator __iter__ method return itself
2016-01-19 16:49:20 -08:00
Guido van Rossum
a080d6cee5
Make Future stub resemble reality better.
2016-01-19 14:23:09 -08:00
Guido van Rossum
740568ed25
Use NamedTuple for inspect.ArgSpec and .FullArgSpec.
2016-01-18 16:51:23 -08:00
Guido van Rossum
f1beef02e7
Replace some unicode argument defaults with ... (the type checker does not care about the value).
2016-01-18 16:44:44 -08:00
Guido van Rossum
2d82816e14
Add Iterable base class to csv.DictReader. Fixes #47 .
2016-01-18 16:39:08 -08:00
Guido van Rossum
c0377b6753
Merge pull request #45 from bdarnell/updates
...
Assorted stub updates
2016-01-16 14:13:59 -08:00
Ben Darnell
1626c25087
Add some third_party modules.
...
backports_abc and singledispatch were made with stubgen, certifi was
written by hand, and ssl_match_hostname was copied from ssl.pyi.
2016-01-16 16:56:25 -05:00
Ben Darnell
b7b7da1a85
Stubgen some more stdlib modules.
...
Copy doctest.pyi from 3 to 2.7.
2016-01-16 16:54:47 -05:00
Ben Darnell
3a674645a5
Assorted fixes to stubs
2016-01-16 16:52:01 -05:00
Daniel Shaulov
01d96e4ac4
Fix signatures of __init__ for Thread and Timer
2016-01-16 00:21:24 +02:00
Guido van Rossum
43fcb6c185
Merge pull request #44 from DanielShaulov/patch-1
...
Add timer class to threading.pyi
2016-01-15 08:29:56 -08:00
DanielShaulov
723ed4f98f
Add timer class to threading.pyi
2016-01-15 18:13:22 +02:00
Guido van Rossum
5463335be2
Make deque inherit from MutableMapping (with difficulty). Fixes #43 .
2016-01-14 09:14:38 -08:00
Guido van Rossum
71d15d6943
Remove outdated things from README.
2016-01-14 09:11:38 -08:00
Guido van Rossum
d98f4a585b
Merge pull request #42 from python/move
...
Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
Checked against mypy, it works.
2016-01-12 14:14:00 -08:00
Guido van Rossum
8c2118bace
Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
2016-01-12 12:53:18 -08:00
Guido van Rossum
0938e8f5de
Add flush keyword arg to print() (even though 3.2 does not support it).
2016-01-12 11:18:20 -08:00
Guido van Rossum
8539624f05
Fix Reversible.__reversed__() return type. (I should do more testing.)
2016-01-11 16:04:44 -08:00
Guido van Rossum
1c02f14dc1
Make Reversible covariant. Fixes #19 . (Though it does not seem to be *necessary*.)
2016-01-11 15:32:43 -08:00
Guido van Rossum
0673b7bab9
Add Generator to 2.7/typing.pyi. Fixes #29 .
2016-01-11 15:26:22 -08:00
Guido van Rossum
605c189f29
Merge pull request #39 from rmcgibbo/json
...
Add keyword args to stdlib's json.pyi
2016-01-11 13:49:24 -08:00
Robert T. McGibbon
dfd7ceecd8
Add type annotations for json.load(s)
2016-01-11 13:23:59 -08:00
Guido van Rossum
e463890df7
2.7 does not have lru_cache().
2016-01-11 08:14:11 -08:00
Matthias Kramm
129bf57659
Merge pull request #40 from rmcgibbo/lru_cache
...
Enhance type information for lru_cache
2016-01-11 05:55:32 -08:00
Robert T. McGibbon
a40418ed7b
Enhance type information for lru_cache
2016-01-11 01:46:05 -08:00
Robert T. McGibbon
0735ec0251
Add keyword args to stdlib's json.pyi
2016-01-10 23:37:17 -08:00
Guido van Rossum
87bc00eb2a
Unify 2.7 and 3 stubs for functools.
2016-01-08 10:10:50 -08:00
Matthias Kramm
42da4e56f9
Have ast.pyi re-export symbols from _ast.pyi.
2016-01-08 10:03:06 -08:00
Jukka Lehtosalo
0d7b6ce135
Fix Python 3 six.moves
...
This was breaking mypy Travis build.
2016-01-08 15:25:50 +00:00
Guido van Rossum
505b108ced
Merge pull request #35 from mrwright/master
...
Fix types for timetuple and utctimetuple
2016-01-07 15:59:42 -08:00
Matthew Wright
72e8813a1a
Fix types for timetuple and utctimetuple
2016-01-07 15:45:01 -08:00
Guido van Rossum
5cf2fa45b8
Add cStringIO, cPickle to six.moves. Add six.moves for PY3.
2016-01-06 16:41:22 -08:00
Guido van Rossum
0f21b59a30
Some updates now typing.Container is defined.
2016-01-06 16:38:14 -08:00