Add os.supports_* sets (new in 3.3) (#1005)

* Add os.supports_* sets (new in 3.3)
* Use Callable[..., Any] instead of builtin.function.
This commit is contained in:
Eddie Antonio Santos
2017-03-15 23:24:16 -06:00
committed by Łukasz Langa
parent 3f0eb995aa
commit a2fe3f4c59

View File

@@ -17,6 +17,12 @@ from mypy_extensions import NoReturn
supports_bytes_environ = False # TODO: True when bytes implemented?
if sys.version_info >= (3, 3):
supports_dir_fd = ... # type: Set[Callable[..., Any]]
supports_fd = ... # type: Set[Callable[..., Any]]
supports_effective_ids = ... # type: Set[Callable[..., Any]]
supports_follow_symlinks = ... # type: Set[Callable[..., Any]]
SEEK_SET = 0
SEEK_CUR = 0
SEEK_END = 0