comparison stubs/twisted/python/failure.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.failure (Python 3)
2 #
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
4
5 from typing import Any, Optional
6
7 count: int
8 traceupLength: int
9
10 class DefaultException(Exception): ...
11
12 def format_frames(frames: Any, write: Any, detail: str = ...) -> None: ...
13
14 EXCEPTION_CAUGHT_HERE: str
15
16 class NoCurrentExceptionError(Exception): ...
17
18 class _TracebackFrame:
19 tb_frame: Any = ...
20 tb_lineno: Any = ...
21 tb_next: Any = ...
22 def __init__(self, frame: Any, tb_next: Any) -> None: ...
23
24 class _Frame:
25 f_code: Any = ...
26 f_globals: Any = ...
27 f_locals: Any = ...
28 def __init__(self, name: Any, filename: Any) -> None: ...
29
30 class _Code:
31 co_name: Any = ...
32 co_filename: Any = ...
33 def __init__(self, name: Any, filename: Any) -> None: ...
34
35 class Failure(BaseException):
36 pickled: int = ...
37 stack: Any = ...
38 count: Any = ...
39 type: Any = ...
40 captureVars: Any = ...
41 value: Any = ...
42 tb: Any = ...
43 parents: Any = ...
44 def __init__(self, exc_value: Optional[Any] = ..., exc_type: Optional[Any] = ..., exc_tb: Optional[Any] = ..., captureVars: bool = ...) -> None: ...
45 def trap(self, *errorTypes: Any): ...
46 def check(self, *errorTypes: Any): ...
47 def raiseException(self) -> None: ...
48 def throwExceptionIntoGenerator(self, g: Any): ...
49 __dict__: Any = ...
50 def cleanFailure(self) -> None: ...
51 def getTracebackObject(self): ...
52 def getErrorMessage(self): ...
53 def getBriefTraceback(self): ...
54 def getTraceback(self, elideFrameworkCode: int = ..., detail: str = ...): ...
55 def printTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: bool = ..., detail: str = ...) -> None: ...
56 def printBriefTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: int = ...) -> None: ...
57 def printDetailedTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: int = ...) -> None: ...
58
59 DO_POST_MORTEM: bool
60
61 def startDebugMode() -> None: ...