We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Context.cd()
pathlib.Path
1 parent 6b98f73 commit f53d073Copy full SHA for f53d073
1 file changed
stubs/invoke/invoke/context.pyi
@@ -1,3 +1,4 @@
1
+import pathlib
2
from contextlib import AbstractContextManager
3
4
from .config import Config, DataProxy
@@ -13,7 +14,7 @@ class Context(DataProxy):
13
14
def prefix(self, command: str) -> AbstractContextManager[None]: ...
15
@property
16
def cwd(self) -> str: ...
- def cd(self, path: str) -> AbstractContextManager[None]: ...
17
+ def cd(self, path: str | pathlib.Path) -> AbstractContextManager[None]: ...
18
19
class MockContext(Context):
20
def __init__(self, config: Config | None = ..., **kwargs) -> None: ...
0 commit comments