Michael Lee
7a48825938
Copy stubs for os.spawn* from Python 3 to Python 2 ( #528 )
...
The stubs for the os module in Python 2.7 were somehow missing the
spawn* functions that were added to Python 3.
2016-09-09 12:00:00 -07:00
Alvaro Caceres
746f4db989
Change constants to type-equivalent versions ( #392 )
...
* Change constants to type-equivalent versions
For pytype support.
" = object()" -> " = ..."
Non-zero ints -> 0
* Drop changes to typing and __builtin__
2016-07-25 13:03:42 -07:00
alvarocaceres
d7db6221da
Change imports so pytype can parse them ( #394 )
...
* Change imports so pytype can parse them
relative imports -> absolute
import foo.bar as baz -> equivalent "from foo ..."
* fixup ...
2016-07-22 13:04:09 -07:00
Amandine Lee
03326014a5
Use unicode rather than str for os env functions ( #312 )
2016-06-24 11:18:24 -07:00
Russ Allbery
9f3d84551d
Add stub for statvfs and type for fstatvfs (2.7) ( #311 )
...
Use the same approach as for resource: define a private NamedTuple
to represent the return value that can be addressed by name or by
sequence.
2016-06-23 17:39:06 -07:00
Jukka Lehtosalo
292447bd62
Misc stub fixes ( #181 )
2016-05-04 16:54:57 -07:00
Jukka Lehtosalo
a5d5dcc4f4
Fixes to os.environ ( #172 )
...
Add os.environ.copy() to Python 2 stubs. Fix return
type of os.environ.copy().
2016-04-28 11:53:51 +01:00
Tim Abbott
0632f2e530
Add missing exec*, EX_* stubs for python 2 and fix py3 types.
2016-01-29 17:54:24 -08:00
Tim Abbott
c2555b3119
Port stub for os.walk from python 3 to 2 and cleanup comment.
2016-01-26 16:30:15 -08:00
Tim Abbott
ddc33a3c7c
Add missing stub for os.exit on python 2.
2016-01-25 16:33:35 -08:00
Tim Abbott
b180914208
Fix os.wait and os.waitpid annotations on python 2.
2016-01-25 16:33:35 -08:00
Tim Abbott
c0d0f7fe14
Fix os.environ improperly classified as not mutable for python 2.
...
In Python, you can change the environment by writing to os.environ.
This seems to already be handled correctly in the python 3 type data,
so we just need to fix it for 2.7.
2016-01-22 17:47:53 -08:00
Guido van Rossum
1f7b00e451
Add more constants to 2.7 os stub, copied from 3.x os stub.
2015-11-22 17:02:41 -08:00
Matthias Kramm
94c9ce8fd0
Consistently use '= ...' for optional parameters.
2015-11-09 13:55:02 -08:00
Matthias Kramm
d2a3d4a4ed
Use explicit "# type: str" instead of '' shortcut.
2015-11-09 07:59:24 -08:00
Matthias Kramm
16eff9e7b6
Applied typo fix from Anup Chenthamarakshan
2015-10-12 08:20:48 -07:00
Matthias Kramm
337abed05a
add (overwrite with) mypy stubs, if available
2015-09-30 09:59:44 -07:00