Files
@ 04ed5d134973
Branch filter:
Location: light9/stubs/twisted/python/util.pyi
04ed5d134973
3.6 KiB
text/plain
WIP draw prom metrics on homepage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | # Stubs for twisted.python.util (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from collections import OrderedDict as OrderedDict
from twisted.python._oldstyle import _replaceIf as _replaceIf
from typing import Any, Optional
class InsensitiveDict:
data: Any = ...
preserve: Any = ...
def __init__(self, dict: Optional[Any] = ..., preserve: int = ...) -> None: ...
def __delitem__(self, key: Any) -> None: ...
def __getitem__(self, key: Any): ...
def __setitem__(self, key: Any, value: Any) -> None: ...
def has_key(self, key: Any): ...
__contains__: Any = ...
def keys(self): ...
def values(self): ...
def items(self): ...
def get(self, key: Any, default: Optional[Any] = ...): ...
def setdefault(self, key: Any, default: Any): ...
def update(self, dict: Any) -> None: ...
def iterkeys(self) -> None: ...
def itervalues(self) -> None: ...
def iteritems(self) -> None: ...
def popitem(self): ...
def clear(self) -> None: ...
def copy(self): ...
def __len__(self): ...
def __eq__(self, other: Any): ...
def uniquify(lst: Any): ...
def padTo(n: Any, seq: Any, default: Optional[Any] = ...): ...
def getPluginDirs(): ...
def addPluginDir() -> None: ...
def sibpath(path: Any, sibling: Any): ...
def getPassword(prompt: str = ..., confirm: int = ..., forceTTY: int = ..., confirmPrompt: str = ..., mismatchMessage: str = ...): ...
def println(*a: Any) -> None: ...
def spewer(frame: Any, s: Any, ignored: Any) -> None: ...
def searchupwards(start: Any, files: Any = ..., dirs: Any = ...): ...
class LineLog:
log: Any = ...
size: Any = ...
def __init__(self, size: int = ...) -> None: ...
def append(self, line: Any) -> None: ...
def str(self): ...
def __bytes__(self): ...
def __getitem__(self, item: Any): ...
def clear(self) -> None: ...
def raises(exception: Any, f: Any, *args: Any, **kwargs: Any): ...
class IntervalDifferential:
intervals: Any = ...
default: Any = ...
def __init__(self, intervals: Any, default: int = ...) -> None: ...
def __iter__(self): ...
class _IntervalDifferentialIterator:
intervals: Any = ...
default: Any = ...
last: int = ...
def __init__(self, i: Any, d: Any) -> None: ...
def __next__(self): ...
next: Any = ...
def addInterval(self, i: Any) -> None: ...
def removeInterval(self, interval: Any) -> None: ...
class FancyStrMixin:
showAttributes: Any = ...
class FancyEqMixin:
compareAttributes: Any = ...
def __eq__(self, other: Any): ...
def __ne__(self, other: Any): ...
def switchUID(uid: Any, gid: Any, euid: bool = ...) -> None: ...
class SubclassableCStringIO:
def __init__(self, *a: Any, **kw: Any) -> None: ...
def __iter__(self): ...
def next(self): ...
def close(self): ...
def isatty(self): ...
def seek(self, pos: Any, mode: int = ...): ...
def tell(self): ...
def read(self, n: int = ...): ...
def readline(self, length: Optional[Any] = ...): ...
def readlines(self, sizehint: int = ...): ...
def truncate(self, size: Optional[Any] = ...): ...
def write(self, s: Any): ...
def writelines(self, list: Any): ...
def flush(self): ...
def getvalue(self): ...
def untilConcludes(f: Any, *a: Any, **kw: Any): ...
def mergeFunctionMetadata(f: Any, g: Any): ...
def nameToLabel(mname: Any): ...
def uidFromString(uidString: Any): ...
def gidFromString(gidString: Any): ...
def runAsEffectiveUser(euid: Any, egid: Any, function: Any, *args: Any, **kwargs: Any): ...
def runWithWarningsSuppressed(suppressedWarnings: Any, f: Any, *args: Any, **kwargs: Any): ...
|