mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
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:
parent
327e0148f4
commit
0cb0a0bb2a
14
eden/scm/edenscmnative/bindings/dirs.pyi
Normal file
14
eden/scm/edenscmnative/bindings/dirs.pyi
Normal 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]: ...
|
Loading…
Reference in New Issue
Block a user