Commit Graph

373 Commits

Author SHA1 Message Date
Ismail
d21c09919d Creating __init__.pyi files 2016-03-09 11:18:00 +00:00
Ismail
395e0a4197 Fix mypy errors for Py3.1 files 2016-03-09 11:17:23 +00:00
Ismail
d2461d2bcd Merge branch 'feature/type_check_xml' of github.com:ismail-s/typeshed into feature/type_check_xml 2016-03-09 11:10:33 +00:00
Ismail
28bc685573 Remove KeysView & ItemsView from py2 type hints 2016-03-09 11:09:34 +00:00
Ismail
69f1810462 Add pyi files for Py2.7 2016-03-09 11:09:33 +00:00
Ismail
7686cb1a9c Make pyi files work for Py3 and Py3.1 2016-03-09 11:09:33 +00:00
Ismail
4c06be4972 Add files for Py 3.3 and 3.2 2016-03-09 11:09:33 +00:00
Ismail
6a9b713ce3 Add files for Py3.5 2016-03-09 11:09:33 +00:00
Ismail
b7f4055c08 Create files for Py3.4 2016-03-09 11:09:33 +00:00
Ismail
865ec0e277 Remove unnecessary __methods__ 2016-03-09 11:09:33 +00:00
Ismail
8db369f7e2 Improve types on ElementPath 2016-03-09 11:09:33 +00:00
Ismail
1fc5b0b8c5 Type check rest of ElementTree file 2016-03-09 11:09:33 +00:00
Ismail
1f0afa5751 Type check Element class 2016-03-09 11:09:33 +00:00
Ismail
792604ec60 Add type hints to ElementInclude.pyi 2016-03-09 11:09:33 +00:00
Guido van Rossum
5e0c61f8e0 Fix traceback.pyi right. (Sorry!) 2016-03-08 11:00:23 -08:00
Guido van Rossum
6a496215e7 Revert "Merge pull request #95 from youtux/feature/decimal-2.7"
This broke our build.

This reverts commit 0a496917e3, reversing
changes made to c8630a238d.
2016-03-08 10:38:45 -08:00
Guido van Rossum
f901fff70e Add missing import of List from typing. 2016-03-07 15:47:39 -08:00
Guido van Rossum
96bb21f023 Stubs for pdb (only the most useful functions). 2016-03-07 12:17:41 -08:00
Ismail
372948b3d2 Remove KeysView & ItemsView from py2 type hints 2016-03-07 13:08:46 +00:00
Ismail
403261724a Add pyi files for Py2.7 2016-03-07 13:02:40 +00: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
Ismail
677a35cd54 Make pyi files work for Py3 and Py3.1 2016-03-04 16:45:07 +00:00
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
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
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
Ismail
4ac61ea543 Remove unnecessary __methods__ 2016-03-02 22:47:55 +00: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
Ismail
e525cd3253 Improve types on ElementPath 2016-02-29 15:28:03 +00: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