Matthias Kramm
6f07424246
fix types in os.path ( #1363 )
...
In Python 2, doing
os.path.join(u"foo", "bar")
is actually legal, and returns a unicode string.
Also os.path.relpath always returns the type of its first argument.
(The solution is not perfect -- e.g.
os.path.join("a", "b", "c", "d", u"e")
will still result in a type error. )
2017-05-31 10:43:26 -07:00
elmar bucher
579f25896b
fix posix and win32 specific realpath path.pyi definition (PR 2) ( #1345 )
...
Fixes #1335 .
2017-05-24 18:54:50 -07:00
David Euresti
26360e821b
Merge stdlib/{2,3}/os/path.pyi ( #1150 )
...
* Merge stdlib/{2,3}/os/path.pyi
To be renamed into stdlib/2and3/os/path.pyi later.
Also fixes #50
* CR fixes
2017-04-09 19:27:25 -07:00
David Euresti
b03e79886e
Fix os.getenv and friends to have consistent types ( #1131 )
2017-04-03 21:21:35 -07:00
Guido van Rossum
6a06dd40e1
Revert "Make os.stat_result and friends NamedTuples" ( #1113 )
...
* Revert "Added missing attributes of typing.Generator and typing.AsyncGenerator (#886 )"
This reverts commit 8b26422b95 .
2017-03-29 12:03:50 -07:00
David Euresti
6c3e175c8d
Make os.stat_result and friends NamedTuples ( #1103 )
2017-03-29 10:36:04 -07:00
David Euresti
ec83ed90eb
Fix some type errors in os module. ( #1101 )
...
* Fix some type errors in os module.
Found these because they were different between Python 2 and 3.
* Code Review changes
* Make it __arg0
2017-03-26 16:39:07 -07:00
David Euresti
2888b53924
Merge comments between stdlib/{2,3}/os/__init__.pyi to make diffing easier ( #1099 )
2017-03-25 20:50:21 -07:00
David Euresti
ce3a76bb97
Fix arg types for os.execv* ( #1075 )
2017-03-22 10:50:15 -07:00
David Euresti
b362177cc4
Fix typo
2017-03-20 22:36:44 -07:00
David Euresti
2804788efa
Bring some things back to Union types
2017-03-20 22:29:43 -07:00
David Euresti
a4d70e5b01
Bring some things back to Union types
2017-03-20 22:26:06 -07:00
David Euresti
66fbb26aec
Use Union[bytes, Text] in os.pyi
...
In order to unify these two versions I'm making all paths be _PathType = Union[bytes, Text]
Fixes #439
2017-03-20 21:56:14 -07:00
David Euresti
d57bce361f
Reorder 2/os/__init__.py for combining
...
This was a simple reordering of the lines in the file so that it looks like 3/os/__init__.py.
This should let us more easily combine the files
2017-03-20 12:06:20 -07:00
David Fisher
2cb8e184cc
Add NoReturn ( #811 )
...
* Add NoReturn
2017-01-04 13:38:05 -08:00
Lukasz Langa
c0c982ada5
Add missing Dict imports.
2016-12-21 01:15:26 -08:00
Lukasz Langa
147772950f
Fixing flake8 E265 errors
2016-12-20 00:16:44 -08:00
Lukasz Langa
fe0e3744cc
Fixing flake8 E261 errors
2016-12-19 22:09:35 -08:00
Guido van Rossum
cb97bb54c0
Move 2.7 to 2 ( #635 )
...
Closes #579 .
2016-10-26 16:24:49 -07:00