Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stubs/invoke/invoke/context.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from _typeshed import StrPath
from contextlib import AbstractContextManager

from .config import Config, DataProxy
Expand All @@ -13,7 +14,7 @@ class Context(DataProxy):
def prefix(self, command: str) -> AbstractContextManager[None]: ...
@property
def cwd(self) -> str: ...
def cd(self, path: str) -> AbstractContextManager[None]: ...
def cd(self, path: StrPath) -> AbstractContextManager[None]: ...

class MockContext(Context):
def __init__(self, config: Config | None = ..., **kwargs) -> None: ...
Expand Down