-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathtypes.py
35 lines (28 loc) · 978 Bytes
/
types.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import annotations
from typing import TYPE_CHECKING
from typing import Protocol
if TYPE_CHECKING:
from cleo.testers.command_tester import CommandTester
from poetry.installation import Installer
from poetry.installation.executor import Executor
from poetry.poetry import Poetry
from poetry.utils.env import Env
class CommandTesterFactory(Protocol):
def __call__(
self,
command: str,
poetry: Poetry | None = None,
installer: Installer | None = None,
executor: Executor | None = None,
environment: Env | None = None,
) -> CommandTester: ...
class ProjectFactory(Protocol):
def __call__(
self,
name: str,
dependencies: dict[str, str] | None = None,
dev_dependencies: dict[str, str] | None = None,
pyproject_content: str | None = None,
poetry_lock_content: str | None = None,
install_deps: bool = True,
) -> Poetry: ...