Skip to content

Commit a340bcb

Browse files
more typing baby steps
1 parent 3c21ea5 commit a340bcb

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

pythonanywhere/api.pyi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, List, Any, Type
1+
from typing import Dict, List, Any
22

33
from requests import Response
44

@@ -11,10 +11,8 @@ def get_api_endpoint() -> str: ...
1111
def call_api(url: str, method: str, **kwargs) -> Response: ...
1212

1313
class Webapp:
14-
def __init__(self, domain: str) -> None:
15-
self.domain = Type[str]
16-
...
17-
14+
domain: str = ...
15+
def __init__(self, domain: str) -> None: ...
1816
def __eq__(self, other: Webapp) -> bool: ...
1917
def sanity_checks(self, nuke: bool) -> None: ...
2018
def create(self, python_version: str, virtualenv_path: str, project_path: str, nuke: bool) -> None: ...

pythonanywhere/virtualenvs.pyi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pathlib import Path
2+
from typing import List
3+
4+
5+
class Virtualenv:
6+
domain: str = ...
7+
python_version: str = ...
8+
path: Path = ...
9+
def __init__(self, domain: str, python_version: str) -> None: ...
10+
def __eq__(self, other: Virtualenv) -> bool: ...
11+
def create(self, nuke: bool) -> None: ...
12+
def pip_install(self, packages: List[str]) -> None: ...

0 commit comments

Comments
 (0)