mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
0cb0a0bb2a
Summary: Begin adding some initial type annotations for the Rust Python bindings. Reviewed By: quark-zju Differential Revision: D22993222 fbshipit-source-id: 2073db93b22f6bb04e30b767594d435c36ddb17f
15 lines
504 B
Python
15 lines
504 B
Python
# 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]: ...
|