Skip to content

Commit

Permalink
Rename stubs to .pyi and reformat them
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Feb 10, 2020
1 parent cd4bb1c commit 679b770
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 34 deletions.
14 changes: 3 additions & 11 deletions stubs/gnupg.py → stubs/gnupg.pyi
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: ...
10 changes: 0 additions & 10 deletions stubs/pexpect.py

This file was deleted.

5 changes: 5 additions & 0 deletions stubs/pexpect.pyi
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: ...
13 changes: 0 additions & 13 deletions stubs/semver.py

This file was deleted.

8 changes: 8 additions & 0 deletions stubs/semver.pyi
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: ...

0 comments on commit 679b770

Please sign in to comment.