-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename stubs to .pyi and reformat them
- Loading branch information
1 parent
cd4bb1c
commit 679b770
Showing
5 changed files
with
16 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
from typing import List, Optional | ||
|
||
|
||
class ImportResult: | ||
stderr: str | ||
fingerprints: List[str] | ||
sec_imported: int | ||
|
||
|
||
class Sign: | ||
stderr: str | ||
status: Optional[str] | ||
|
||
|
||
class GPG: | ||
def __init__(self, *, gnupghome: str, use_agent: bool) -> None: | ||
... | ||
|
||
def import_keys(self, data: str) -> ImportResult: | ||
... | ||
|
||
def sign(self, data: str, passphrase: Optional[str]) -> Sign: | ||
... | ||
def __init__(self, *, gnupghome: str, use_agent: bool) -> None: ... | ||
def import_keys(self, data: str) -> ImportResult: ... | ||
def sign(self, data: str, passphrase: Optional[str]) -> Sign: ... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Spawn: | ||
def expect(self, expected: str) -> int: ... | ||
def sendline(self, line: str) -> int: ... | ||
|
||
def spawn(cmd: str) -> Spawn: ... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from __future__ import annotations | ||
|
||
class VersionInfo: | ||
prerelease: str | ||
build: str | ||
def __lt__(self, other: VersionInfo) -> bool: ... | ||
|
||
def parse_version_info(version: str) -> VersionInfo: ... |