mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
20 lines
595 B
Python
20 lines
595 B
Python
# Stubs for pipes
|
|
|
|
# Based on http://docs.python.org/3.5/library/pipes.html
|
|
|
|
import os
|
|
|
|
class Template:
|
|
def __init__(self) -> None: ...
|
|
def reset(self) -> None: ...
|
|
def clone(self) -> Template: ...
|
|
def debug(self, flag: bool) -> None: ...
|
|
def append(self, cmd: str, kind: str) -> None: ...
|
|
def prepend(self, cmd: str, kind: str) -> None: ...
|
|
def open(self, file: str, rw: str) -> os._wrap_close: ...
|
|
def copy(self, file: str, rw: str) -> os._wrap_close: ...
|
|
|
|
# Not documented, but widely used.
|
|
# Documented as shlex.quote since 3.3.
|
|
def quote(s: str) -> str: ...
|