File: types.py

package info (click to toggle)
pytest-subprocess 1.5.3-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 444 kB
  • sloc: python: 2,319; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import asyncio
import io
import os
from typing import Sequence
from typing import Union

from .utils import Any
from .utils import Command
from .utils import Program

OPTIONAL_TEXT = Union[str, bytes, None]
OPTIONAL_TEXT_OR_ITERABLE = Union[
    str,
    bytes,
    None,
    Sequence[Union[str, bytes]],
]
BUFFER = Union[io.BytesIO, io.StringIO, asyncio.StreamReader]
ARGUMENT = Union[str, Any, os.PathLike, Program]
COMMAND = Union[Sequence[ARGUMENT], str, Command]