Skip to content
Snippets Groups Projects
Commit b6fc602e074a authored by Matt Harbison's avatar Matt Harbison
Browse files

typing: fix the typehint for `skip` arg on `osutil.listdir()` to be optional

The cffi and pure implementations both default to `None`, and the args are
parsed in C with `"y#|OO:listdir"`, with the C variable initialized to NULL.
parent 94a797032fc4
No related branches found
No related tags found
Loading
......@@ -2,6 +2,7 @@
AnyStr,
IO,
List,
Optional,
Sequence,
)
......@@ -15,7 +16,7 @@
st_mtime: int
st_ctime: int
def listdir(path: bytes, st: bool, skip: bool) -> List[stat]: ...
def listdir(path: bytes, st: bool, skip: Optional[bool]) -> List[stat]: ...
def posixfile(name: AnyStr, mode: bytes, buffering: int) -> IO: ...
def statfiles(names: Sequence[bytes]) -> List[stat]: ...
def setprocname(name: bytes) -> None: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment