David Euresti
cc8799ee36
Make Future a generic, like in python2 ( #449 )
2016-08-05 11:57:10 -07:00
David Euresti
d760d48f52
Copy string.Formatter to python 3 ( #443 )
2016-08-05 07:47:23 -07:00
David Euresti
a98e9aa651
Enable UF_COMPRESSED and UF_HIDDEN in stat in python3 ( #444 )
2016-08-05 07:24:16 -07:00
David Euresti
141318c056
Add RemoteError and current_process to multiprocessing ( #445 )
2016-08-05 07:19:46 -07:00
wreed4
382cb5fe20
Updating subprocess.pyi to support python 3.5 ( #438 )
...
* Updating subprocess.pyi to support python 3.5
Also added DEVNULL which was added in 3.3
* Incorrectly checked sys.version_info
* Addressed travis build failures
Forgot that __init__ should return None and also forgot "self" on a method. Like a dummy.
2016-08-05 07:01:34 -07:00
Guido van Rossum
de4e87f574
Changes required by mypy async-await support ( #435 )
2016-08-03 17:01:35 -07:00
Valérian Rousset
5a5138aa1e
Add stubs for pkgutils ( #431 )
...
* py3 done (py2 pass empty)
* remove dangling importlib
* importlib.abc only exists in py3
2016-08-03 15:40:37 -07:00
Daniël van Eeden
d315ceb060
Add os.scandir and os.DirEntry ( #424 )
...
Introduced in Python 3.5
2016-08-03 15:40:00 -07:00
Daniël van Eeden
51a519b358
Add timeout argument to Popen communicate ( #423 )
...
This was added in Python 3.3
2016-08-03 15:39:35 -07:00
Valérian Rousset
2e560d38dc
Improve distutils ( #418 )
...
* remove old distutils
* core done
* ccompiler done
* compilers done
* archive_util done
* dep_util done
* dir_util done
* file_util done
* util done
* dist done
* debug, error, extension done
* fancy_getopt done
* filelist, log, spawn done
* sysconfig done
* text_file done
* version done
* cmd done
* add command
* add emxccompiler which is py2 only
* command.build_py have spec only in py3
* make pytype happy by resolving relative import
2016-08-03 15:38:15 -07:00
Valérian Rousset
ee02a8a968
Improve threading ( #403 )
...
* initial stubgen
* comment everything
* 17.1.0 done
* 17.1.1 done
* 17.1.2 done
* 17.1.3 done
* 17.1.4 done
* 17.1.5 done
* reorder __enter__, __exit__
* 17.1.6 done
* 17.1.7 done
* 17.1.8 done
* 17.1.9 done
* cleanup, py3 done
* py2 begin, comment everything
* 16.2.0 done
* 16.2.1 done
* 16.2.2 done
* 16.2.3 done
* 16.2.4 done
* 16.2.5 done
* 16.2.6 done
* 16.2.7 done
* cleanup, py2 done
* remove old threading stubs
* use --strict-optional
* improve Condition.wait_for
* remove type ignore
2016-08-01 14:31:57 -07:00
Valérian Rousset
1bd78d4aab
Improve contextlib ( #406 )
...
* remove old, new stubgen
* comment everything
* contextlib done
* use TypeVar instead of overload
* py2 done
2016-07-29 15:26:14 -07:00
Valérian Rousset
24086b2195
Finish mail ( #396 )
...
* remove old email files
* finish email.mime
* finish email.encoders
* email.utils: stubgen run, reorder
* finish email.utils
* finish email.iterators
* email.mime is a module
* fix mime
2016-07-29 15:25:52 -07:00
Max Wittek
af860ee993
textwrap for py3: fixed stubs to include 'text' param ( #420 )
2016-07-29 14:01:03 -07:00
Valérian Rousset
6c6f5f19da
apply conditionals ( #417 )
2016-07-29 05:59:26 -07:00
Valérian Rousset
cfde32b93f
Add mimetypes ( #404 )
...
* remove old mimetypes, new stubgen
* reorder, cleanup
* py3 pass (py2 pass empty)
2016-07-29 05:50:46 -07:00
johnklai1
9795200acc
Add optional delete argument to bytes.translate and bytearray.translate ( #416 )
2016-07-28 23:38:56 -07:00
Valérian Rousset
557579da36
merge py2 and py3 errno ( #413 )
2016-07-28 06:15:22 -07:00
Guido van Rossum
39325bf159
Mypy now supports sys.platform and sys.version_info checks ( #410 )
2016-07-27 13:25:29 -07:00
Jakub Stasiak
b91b932d4f
Add BaseRequestHandler instance attributes ( #384 )
...
From the BaseRequestHandler documentation:
handle()
This function must do all the work required to service a request.
The default implementation does nothing. Several instance attributes
are available to it; the request is available as self.request; the
client address as self.client_address; and the server instance as
self.server, in case it needs access to per-server information.
The type of self.request is different for datagram or stream
services. For stream services, self.request is a socket object;
for datagram services, self.request is a pair of string and
socket.
2016-07-26 09:57:08 -07:00
Valérian Rousset
cd413c502c
Add hmac ( #402 )
2016-07-26 08:40:04 -07:00
Michael R. Crusoe
cc735b1176
expose xml.sax Exceptions ( #280 )
2016-07-26 07:45:27 -07:00
Jakub Stasiak
44b367c7fe
Add re fullmatch() information ( #381 )
2016-07-26 07:43:29 -07:00
Fabian Heredia Montiel
918eef43f7
Add some missing classes from queue in py3 ( #401 )
2016-07-26 07:41:56 -07:00
Michael Lee
9ecc1f2147
Add stubs for NewType helper function ( #398 )
...
(Note that this is not enough to support NewType(). However it's a prerequisite for the mypy implementation.)
2016-07-26 07:35:28 -07:00
jchien14
b8c08f25f7
Add traceback.print_stack to mypy python 3 ( #400 )
2016-07-25 16:40:01 -07:00
Michael Lee
368c703078
Add dict views to python 2 ( #376 )
2016-07-21 11:28:35 -07:00
Fabian Heredia Montiel
1d5df0bd7b
Add enumera ( #378 )
2016-07-20 10:53:34 -07:00
Guido van Rossum
df5c64e247
Add StopAsyncIteration; also add StopIteration.value.
2016-07-19 19:45:36 -07:00
Daniel F Moisset
ba349199d7
More general types for frozenset methods ( #277 )
...
Fixes #276 .
2016-07-18 17:17:57 -07:00
Valérian Rousset
d5938ee76c
Add cpython specific constants to ssl ( #291 )
...
* Revert "Revert "add types to ssl for py2 (#251 )""
This reverts commit 0b19fb471c (thus re-adding types to ssl).
* add some undocumented ssl constants
2016-07-17 19:27:29 -07:00
Valérian Rousset
cf655f6f02
add some types to importlib ( #340 )
2016-07-15 15:46:28 -07:00
Guido van Rossum
6aeea2a872
Add stub for cgi.parse_header(). ( #371 )
2016-07-15 15:42:51 -07:00
Valérian Rousset
8ef221c162
add zipfile for py2 ( #345 )
2016-07-15 05:55:20 -07:00
speezepearson
534837e1ee
add __{cause,context,traceback}__ to BaseException, per PEP 3134 ( #369 )
2016-07-13 15:26:55 -07:00
Jukka Lehtosalo
e05edb60f1
Mypy stub fixes for strict optional mode ( #366 )
2016-07-13 09:38:40 -07:00
Eklavya Sharma
bca4c81b70
builtins: Remove Exception.message. ( #363 )
...
It's not present in 3.4 either, so this looks good to me.
2016-07-13 16:11:51 +01:00
speezepearson
e815c803a6
add ChainMap class to collections module ( #361 )
...
* add ChainMap class to collections module
* ...and add it for Python 2 as well.
2016-07-13 06:16:37 -07:00
speezepearson
e436795124
add default arguments to traceback.format_exception ( #360 )
2016-07-13 06:14:16 -07:00
Matthias Kramm
e19e10c891
Merge pull request #348 from sharmaeklavya2/fix-subprocess-check-output
...
subprocess: Fix return type of check_output.
2016-07-12 17:12:33 -07:00
Guido van Rossum
1c4662d2f3
Two small changes to help the mypy test suite pass ( #355 )
...
* Condition arg for skip{If,Unless} should be object, not bool.
* Env arg to os.get_exec_path() is a Mapping, not a Dict.
2016-07-12 14:10:36 -07:00
Matthias Kramm
b48ddf7532
Merge pull request #352 from tharvik/improve_argparse
...
merge py2 and py3 argparse
2016-07-11 06:36:25 -07:00
tharvik
87235ad72b
merge py2 and py3 argparse
2016-07-11 15:23:51 +02:00
Matthias Kramm
90b9d4d77c
Merge pull request #339 from tharvik/improve_os
...
add some types to os
2016-07-11 06:18:38 -07:00
tharvik
1833e8e4b6
add some types to os
2016-07-11 15:09:52 +02:00
Michael Lee
adc6bf5f94
Update set methods to take multiple iterables ( #349 )
...
As of Python 2.7, you can pass in multiple iterables into some set
methods like union, intersection, difference, and update. So, for
example, `new_set = a.union(b, c)`.
2016-07-07 11:52:22 -07:00
Eklavya Sharma
a7754c3eff
subprocess: Fix return type of check_output.
...
check_output's return type can be str if universal_newlines=True.
2016-07-07 22:04:29 +05:30
Matthias Kramm
f75bbae18d
Merge pull request #344 from tharvik/improve_unittest
...
improve unittest
2016-07-07 06:36:06 -07:00
Matthias Kramm
7bef3added
Merge pull request #297 from alvarocaceres/subprocess
...
Fix signatures of call, check_call and check_output in subprocess
2016-07-06 10:54:01 -07:00
tharvik
e102c99f36
improve unittest
2016-07-06 11:33:48 +02:00