File: contextlib_chdir.pyi

package info (click to toggle)
python-test-stages 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 792; sh: 24; makefile: 9
file content (11 lines) | stat: -rw-r--r-- 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from _typeshed import StrOrBytesPath
from typing import Generic, TypeVar
from contextlib import AbstractContextManager

_T_fd_or_any_path = TypeVar("_T_fd_or_any_path", bound=int | StrOrBytesPath)

class chdir(AbstractContextManager[None], Generic[_T_fd_or_any_path]):
    path: _T_fd_or_any_path
    def __init__(self, path: _T_fd_or_any_path) -> None: ...
    def __enter__(self) -> None: ...
    def __exit__(self, *excinfo: object) -> None: ...