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