David Fisher
d390ef3161
Make all function annotations accessible from builtins complete
2016-03-11 14:27:28 -08:00
Jakub Stasiak
ea37877558
Improve Python 3 inspect stub
...
This is follow-up to a similar commit improving Python 2.7 inspect stub[1].
Similarly, this commit consists of:
* Splitting and reordering the content into sections corresponding
to the module's documentation sections
* Implementing missing functions, classes etc.
* Adding TODOs for things that are either difficult to get or I can't
figure them out right now
* Making the existing code consistent with the newly added things
As suggested in pull request #108 I'm modifying the generic Python 3
stub even though some things changed and were added in various Python
3.x releases - the changes seem to be backwards compatible and the
additions, well, they should not break much except for some false
positives on older Python 3 versions.
Some of the types in this stub were not obvious so I either read the
source code or used my judgment.
[1] 630f718376
2016-03-10 01:28:07 +01:00
Guido van Rossum
307516c95b
Merge pull request #101 from Naruto0/master
...
sqlite3 stub for 2.7 and 3
2016-03-09 13:13:20 -08:00
Guido van Rossum
49446569e1
Merge pull request #98 from ismail-s/feature/type_check_xml
...
Type check xml.etree module
2016-03-09 12:48:56 -08:00
Guido van Rossum
54ba6d9b73
Fix typos: termina[ta]te().
2016-03-09 09:21:15 -08:00
Ismail
8d893cfae8
Make forward references strings
2016-03-09 11:58:24 +00:00
Ismail
395e0a4197
Fix mypy errors for Py3.1 files
2016-03-09 11:17:23 +00:00
Ismail
7686cb1a9c
Make pyi files work for Py3 and Py3.1
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
f901fff70e
Add missing import of List from typing.
2016-03-07 15:47:39 -08:00
Filip Hron
f151033476
version for python 3
2016-03-07 23:21:02 +01:00
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
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
8808bac6fc
Merge pull request #99 from Naruto0/master
...
reduce use of @overload in socket stubs
2016-03-03 09:21:46 -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
0a11b5e898
putting @overload decorator back to getsockopt method
2016-03-03 10:07:57 +01:00
Filip Hron
2ae555c144
refractoring overload
2016-03-02 14:07:37 +01:00
Hong Minhee
9f1ea9c412
Specify attribute types of SyntaxError
2016-02-29 13:35:30 +09: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
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
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
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
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
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
David Fisher
48b3b260d1
Remove invalid Python 3 syntax
2016-02-18 16:25:30 -08:00
Tim Abbott
a648f5eee1
Fix incorrect sys.exit() type.
2016-02-05 11:28:16 -08:00
Jukka Lehtosalo
89ed6e92d4
Add abc.abstractproperty (Python 3)
2016-02-04 15:38:42 +00:00
Robert T. McGibbon
9933080b04
Update builtins.pyi
2016-02-03 15:20:03 -08:00
Robert T. McGibbon
8739c4a188
Improvements to builtins min/max
2016-02-03 15:16:52 -08:00
Guido van Rossum
6e69d24b07
Merge pull request #75 from ismail-s/feature/type_check_webbrowser
...
Add py2 webbrowser type checking
2016-02-01 09:28:09 -08:00
Ismail
b6dfeebe1e
Move webbrowser.pyi to 2and3 folder
2016-02-01 10:00:53 +00:00
Guido van Rossum
68f771266d
Merge pull request #74 from timabbott/exec
...
Add missing exec*, EX_* stubs for python 2 and fix py3 types.
2016-01-29 18:02:35 -08:00
Tim Abbott
0632f2e530
Add missing exec*, EX_* stubs for python 2 and fix py3 types.
2016-01-29 17:54:24 -08:00
Guido van Rossum
22990dff4e
Merge pull request #73 from ismail-s/feature/type_check_webbrowser
...
Type Check webbrowser py3 module
2016-01-29 12:13:41 -08:00
Ismail
56621384a0
Type Check webbrowser py3 module
2016-01-29 14:12:09 +00:00