Guido van Rossum
96bb21f023
Stubs for pdb (only the most useful functions).
2016-03-07 12:17:41 -08:00
Guido van Rossum
f710c1f313
Merge pull request #102 from onyb/onyb-patches
...
Add stub for multiprocessing.cpu_count()
2016-03-05 21:05:24 -08:00
Guido van Rossum
01e817b17c
Merge pull request #104 from ymyzk/update-gc
...
Update stub for gc
2016-03-05 21:03:43 -08:00
Guido van Rossum
c8146aa9c2
Merge pull request #103 from ymyzk/update-zlib
...
Update stub for zlib
2016-03-05 21:02:42 -08:00
Yusuke Miyazaki
3193c317df
Update stub for zlib
2016-03-06 10:03:55 +09:00
Yusuke Miyazaki
7c6e946386
Update stub for gc
2016-03-06 09:25:49 +09:00
Anirudha Bose
09eeeea9f7
Add stub for multiprocessing.cpu_count()
2016-03-05 05:17:04 +05:30
Guido van Rossum
4297e82bc8
Hack for mypy issue #1254 .
2016-03-03 09:58:44 -08:00
Guido van Rossum
8808bac6fc
Merge pull request #99 from Naruto0/master
...
reduce use of @overload in socket stubs
2016-03-03 09:21:46 -08:00
Guido van Rossum
4cc112fa07
Merge pull request #100 from jstasiak/type-overload
...
Define three argument type() overload (Python 3)
2016-03-03 09:17:39 -08:00
Filip Hron
e7e50b6997
attempt to get rid of TODOS, should i edit tests too?
2016-03-03 16:55:33 +01:00
Jakub Stasiak
41f0e7c8b6
Define three argument type() overload (Python 3)
...
This was missing for some reason while the Python 2.7 stubs have it.
Sample test code:
% cat testtype.py
A = type('A', (), {})
print(A.__name__)
Results before:
% python -m mypy --py2 testtype.py
% python -m mypy testtype.py
testtype.py:1: error: Too many arguments for "type"
%
Results after: type checking passes in both modes.
2016-03-03 09:19:59 +00:00
Filip Hron
5b92f7cbc5
putting @overload decorator back to getsockopt method
2016-03-03 10:15:56 +01:00
Filip Hron
fee8196459
overload fix
2016-03-03 10:10:45 +01:00
Filip Hron
0a11b5e898
putting @overload decorator back to getsockopt method
2016-03-03 10:07:57 +01:00
Filip Hron
d5cf02390f
refractoring py2 socket by removing override decorator
2016-03-02 23:09:27 +01:00
Filip Hron
2ae555c144
refractoring overload
2016-03-02 14:07:37 +01:00
Guido van Rossum
6076c051d5
Merge pull request #97 from dahlia/syntax-error-attributes
...
Specify attribute types of SyntaxError
2016-02-29 10:15:57 -08:00
Hong Minhee
9f1ea9c412
Specify attribute types of SyntaxError
2016-02-29 13:35:30 +09:00
Guido van Rossum
a7221265cc
Install from python/mypy instead of JukkaL/mypy.
2016-02-28 18:59:47 -08:00
Greg Price
f9a9fc56ac
Merge pull request #96 from wittekm/fixTypeshedForTraceback
...
Fixed 2.7 stubs for traceback
2016-02-26 19:12:24 -08:00
Max Wittek
00758f39dd
Fixed 2.7 stubs for traceback
2016-02-26 18:03:24 -08:00
Guido van Rossum
0a496917e3
Merge pull request #95 from youtux/feature/decimal-2.7
...
Port decimal stub to Python 2
2016-02-26 13:09:42 -08:00
Alessio Bogon
00779c9564
stub for decimal, 2.7 only
2016-02-26 20:49:50 +01:00
Alessio Bogon
a87e70f348
go back to 3-only, decimal
2016-02-26 20:47:26 +01:00
Alessio Bogon
d518702ce6
comment version-specific code
2016-02-26 20:21:01 +01:00
Alessio Bogon
7955a1815e
move decimal to 2and3
2016-02-26 18:52:39 +01:00
David Fisher
c8630a238d
Merge pull request #93 from ddfisher/master
...
Remove contents of problematic asyncio __all__s
2016-02-25 12:04:44 -08:00
David Fisher
c50e0e6179
Remove contents of problematic asyncio __all__s
2016-02-25 11:59:25 -08:00
Guido van Rossum
2840e71fbf
Merge pull request #92 from lbolla/issue87-shelve
...
Issue #87 Stub for shelve
2016-02-25 10:59:37 -08:00
Lorenzo Bolla
e088d13f2f
Issue #87 Stub for shelve
...
Py3's `shelve` is more restrictive, requiring keys to be `str`, whereas
Py2 allows any hashable type.
E.g.:
s = Shelf({})
s[1] = 'one' # raises AttributeError in py3, but it's OK in Py2
2016-02-25 09:41:32 +00:00
Guido van Rossum
2e7163f5a7
Merge pull request #90 from lbolla/issue88-calendar
...
Issue 88: Stub for calendar module
2016-02-24 20:43:30 -08:00
Lorenzo Bolla
fb4910ed6d
Remove Year/Month/Day/Week type aliases
2016-02-24 22:38:32 +00:00
Lorenzo Bolla
12d348fe67
Remove mention to internal variables
2016-02-24 22:19:25 +00:00
Guido van Rossum
a69eb2730f
Merge pull request #91 from ddfisher/master
...
Fix asyncio.coroutine signature
2016-02-24 13:16:24 -08:00
Lorenzo Bolla
ce938b367b
Remove True/False/None optional arguments.
...
Use Optional[...] when appropriate.
Adhere to PEP-484 styling.
2016-02-24 21:01:41 +00:00
David Fisher
c48d66f28a
Fix asyncio.coroutine signature
2016-02-24 11:35:42 -08:00
Lorenzo Bolla
d872968e32
Issue 88: Stub for calendar module
2016-02-24 12:43:27 +00:00
Matthias Kramm
335ef31893
Merge pull request #85 from ddfisher/master
...
Remove invalid Python 3 syntax
2016-02-23 20:14:15 -06:00
Guido van Rossum
727501521c
Merge pull request #86 from sid-kap/fix_reduce_type
...
Fix type for reduce
2016-02-22 15:51:04 -08:00
Sidharth Kapur
8b428ce2ff
Fix imports
2016-02-22 17:44:07 -06:00
Sidharth Kapur
241e741ef2
Change Iterator to Iterable in type of reduce
2016-02-22 17:41:47 -06:00
Sidharth Kapur
2904b80369
Update type for reduce in stdlib/2.7/functools
2016-02-22 17:27:46 -06:00
David Fisher
f7349d46e9
Add comment about True/False omission in 2.7 builtins
2016-02-20 22:47:38 -08:00
Sidharth Kapur
dc647c3ed5
Fix imports
2016-02-20 22:49:12 -06:00
Sidharth Kapur
fd9310fa97
Overload the reduce function
2016-02-20 22:46:39 -06:00
Sidharth Kapur
b0c0f94210
Fix type for reduce
2016-02-20 22:31:17 -06:00
Guido van Rossum
8d8e7caa77
Merge pull request #81 from dsp/asyncio
...
Additional type information for asyncio
2016-02-19 21:19:38 -08:00
David Soria Parra
70ddf02d21
Use relative imports in asyncio.tasks and asyncio.futures
2016-02-19 19:52:54 -08:00
David Soria Parra
3223a693d5
Add type information for asyncio.subprocess
2016-02-19 19:52:36 -08:00