Guido van Rossum
fed966cf7f
Explain how to run the tests
2016-10-28 08:47:31 -07:00
Guido van Rossum
c3ddd3c5f2
Improve __subclasses__() signature. Fixes python/mypy#2236 .
2016-10-27 17:31:03 -07:00
Guido van Rossum
cb97bb54c0
Move 2.7 to 2 ( #635 )
...
Closes #579 .
2016-10-26 16:24:49 -07:00
Filip Figiel
d60bea14f6
Improve concurrent.futures.wait function stub ( #634 )
2016-10-26 07:19:24 -07:00
Gerhard Hagerer
96123f8474
Added Lock.locked() method stub ( #633 )
...
https://docs.python.org/3/library/asyncio-sync.html#asyncio.Lock.locked
2016-10-26 07:17:59 -07:00
Gerhard Hagerer
0c2e9cf3be
Added variable types for resources.pyi ( #632 )
...
Just some output from stubgen.pyi
2016-10-26 07:16:48 -07:00
Herbert Ho
3ea39a7c1b
update constraints definition for 2.7 sqlalchemy ( #630 )
2016-10-25 16:00:37 -07:00
Roy Williams
bfbe4f8540
Update lxml stubs to add Element.append and Element.text ( #629 )
2016-10-25 12:04:42 -07:00
Kai Lautaportti
c8f324298d
Added typing for os.cpu_count() ( #628 )
2016-10-25 10:46:33 -07:00
Kai Lautaportti
f6bbc46c35
Fix functools.lru_cache() type hint to allow maxsize=None ( #627 )
2016-10-22 15:45:57 -07:00
Elazar
7224b67532
Remove @builtinclass ( #626 )
2016-10-22 12:25:02 -07:00
Jordan Pittier
83802c6724
stdlib/2and3/pkgutil: Arg 1 to "iter_modules" should be List[str] ( #625 )
...
According to https://docs.python.org/2.7/library/pkgutil.html#pkgutil.iter_modules and https://docs.python.org/3/library/pkgutil.html#pkgutil.iter_modules : "path should be either None or a list of paths to look for modules in."
2016-10-21 16:56:34 -07:00
David Fisher
ca318e444f
Fix strings that were really bytes in typed_ast ( #624 )
2016-10-19 16:34:41 -07:00
Matthias Kramm
3253d3cc46
Add more methods to return type of tempfile.{,Named,Spooled}TemporaryFile(). ( #623 )
2016-10-19 16:07:03 -07:00
Matthias Kramm
df6aeef9fd
Add missing methods to 2.7/posixpath.pyi. ( #622 )
2016-10-19 15:53:36 -07:00
Matthias Kramm
7d80824092
Better definition for xml/sax/__init__.pyi. ( #621 )
...
Also, merge 2.7/xml/sax and 3/xml/sax into 2and3/xml/sax.
2016-10-19 15:30:25 -07:00
Kai Lautaportti
8fec896898
Added RecursionError to builtins for Python >= 3.5 ( #620 )
...
Closes #619 .
2016-10-19 15:06:10 -07:00
Calen Pennington
1db6a12ead
assertWarns is only for python >= 3.2 ( #618 )
2016-10-18 12:23:19 -07:00
Xavier Mehrenberger
6e67acd8b1
2.7/uuid: fix types for NAMESPACE_*: use UUID instead of str ( #617 )
2016-10-18 08:21:02 -07:00
Matthias Kramm
94d3ddb60a
change the way 'os' imports 'os.path' ( #601 )
...
* use 'from . import path' instead, in both PY2 and PY3
* update blacklist to include os/__init__.pyi
2016-10-17 17:49:12 -07:00
David Foster
5c4300a4bd
Add mypy_extensions. ( #611 )
2016-10-17 16:39:17 -07:00
Guido van Rossum
bf319675c4
Clarify how to get consent from third party package owners.
2016-10-17 13:19:33 -07:00
Joshua Smock
e503ad4594
Allow any kind of item in the list returned by select ( #615 )
2016-10-17 12:11:10 -07:00
Calen Pennington
8865baf840
Make ABCMeta inherit from type in py3 ( #613 )
2016-10-17 09:19:10 -07:00
Guido van Rossum
8d1026cade
Fix timeout parameter to Popen.wait() -- it is optional (in both senses).
2016-10-15 21:12:32 -07:00
Sebastian Meßmer
b9ab4ae1c2
Add timeout parameter to subprocess.Popen.wait() ( #607 )
...
Also define TimeoutExpired exception.
2016-10-15 14:59:40 -07:00
Yegor Roganov
e4073e385a
Improve types of staticmethod and classmethod ( #609 )
...
Fixes #318
2016-10-15 14:17:17 -07:00
Yegor Roganov
2d8ff30e7a
Improve itertools.islice type ( #610 )
...
`stop` parameter to `islice` can be `None`,
which is important when checking with --strict-optional
2016-10-15 14:14:36 -07:00
Evan Hubinger
0c498000c4
Add future_builtins stub file ( #606 )
...
Add stub file for https://docs.python.org/2/library/future_builtins.html .
2016-10-15 08:19:20 -07:00
Reiner Gerecke
5624e7fd4b
Add collections.Container to Python 2/3 ( #608 )
2016-10-15 08:16:02 -07:00
Guido van Rossum
0b04c44710
Revert last two commits.
...
Reason: https://github.com/python/mypy/issues/328
* Revert "Make fromkeys() take an Iterable instead of a sequence. (#605 )"
This reverts commit 66e8d4a14f .
* Revert "Make dict.fromkeys() a classmethod (which it is). (#604 )"
This reverts commit 26dfcb6859 .
* Add an explanation for fromkeys() being a staticmethod.
2016-10-14 21:11:10 -07:00
Guido van Rossum
66e8d4a14f
Make fromkeys() take an Iterable instead of a sequence. ( #605 )
...
(This, too, came up in python/mypy#2254 -- thanks @rwbarton!)
2016-10-14 10:00:43 -07:00
Guido van Rossum
26dfcb6859
Make dict.fromkeys() a classmethod (which it is). ( #604 )
...
This came up in https://github.com/python/mypy/issues/2254 .
I don't know why it was previously defined as a staticmethod, perhaps
there was an old mypy issue?
2016-10-14 09:41:26 -07:00
Calen Pennington
5daf552f5b
Make viewkeys, viewitems, viewvalues use proper types now that the typing backport has them ( #602 )
2016-10-14 08:41:29 -07:00
jgarvin
1b9266d801
Let open() take a pathlib.Path starting in 3.6 ( #596 )
2016-10-13 16:17:39 -07:00
Alex Jurkiewicz
8d10e885d1
[review] Add multiprocessing.Pool ( #523 )
2016-10-12 16:44:37 -07:00
Eklavya Sharma
7f7a5789bd
Add attribute 'name' to StringIO ( #600 )
...
Add an attribute 'name' of type str to StringIO.StringIO in python2
and io.StringIO in python2 and python3.
Fixes #598 .
2016-10-12 07:34:58 -07:00
Alvaro Caceres
08ac3b7742
2.7/os: remove exception throwing, add misc members ( #591 )
...
* 2.7/os: remove exception throwing, add misc members
* added tempnam, tmpnam
2016-10-12 07:34:35 -07:00
Eklavya Sharma
b92991bc2a
Add TimeTuple in python3's time.pyi and datetime.pyi. ( #597 )
...
Add `TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]`
to stdlib/3/time.pyi and stdlib/3/datetime.pyi.
Use `TimeTuple` instead of `tuple` (where relevant) in time.pyi for
stronger type checking.
Use `TimeTuple` instead of
`Tuple[int, int, int, int, int, int, int, int, int]` in datetime.pyi
to increase readability.
2016-10-11 14:48:47 -07:00
Matthias Kramm
b0eae4bf46
allow to use RLock in type annotations ( #595 )
2016-10-10 16:52:47 -07:00
paavoap
71042452c7
Add stub for SameFileError. ( #594 )
2016-10-10 08:07:54 -07:00
jgarvin
490b34649f
Add stub for shutil.which ( #592 )
2016-10-09 19:58:55 -07:00
paavoap
cac07d6dea
Add type hints for _create_default_https_context and _create_unverified_context. ( #583 )
2016-10-09 19:56:01 -07:00
Alvaro Caceres
92b600540e
Add private members to stdlib threading ( #590 )
...
* Add threading._DummyThread
* Make threading.RLock a factory function, not a class
Will break code that currently uses a threading.RLock type annotation
2016-10-07 13:11:47 -07:00
Alvaro Caceres
9b092f353e
2.7/inspect: add getframeinfo, getouterframes, Traceback ( #588 )
2016-10-06 15:20:42 -07:00
Alvaro Caceres
674fe2b59f
Add threading.Condition.notifyAll ( #587 )
...
Documented in py2, undocumented in py3
2016-10-06 14:14:08 -07:00
Alvaro Caceres
f90a6d1c0e
Inspect: use any instead of object ( #585 )
...
* Have inspect.getmembers' return value use Any instead of object
2016-10-06 11:36:17 -07:00
Alvaro Caceres
9586411dad
Add MONDAY, TUESDAY, ... constants to stdlib/calendar ( #586 )
...
These are undocumented but enough people seem to use them that they
should be considered public
2016-10-06 10:19:16 -07:00
Alvaro Caceres
9e71e54aa9
Add http status code constants to 2.7/httplib ( #584 )
2016-10-06 09:42:42 -07:00
Evgeniy Vasilev
0e5003b61e
Add HTTPStatus definition for python3.5+ ( #577 )
...
Fixes #576 .
2016-09-29 13:09:30 -07:00