begin adding some type stubs for the Rust Python bindings

Summary: Begin adding some initial type annotations for the Rust Python bindings.

Reviewed By: quark-zju

Differential Revision: D22993222

fbshipit-source-id: 2073db93b22f6bb04e30b767594d435c36ddb17f
This commit is contained in:
Adam Simpkins 2020-08-11 21:43:21 -07:00 committed by Facebook GitHub Bot
parent 327e0148f4
commit 0cb0a0bb2a

View File

@ -0,0 +1,14 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
from typing import Iterable
class dirs(Iterable[str]):
def __init__(self, paths: Iterable[str]) -> None: ...
def addpath(self, path: str) -> None: ...
def delpath(self, path: str) -> None: ...
def __contains__(self, path: str) -> bool: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterable[str]: ...