(obj)
| 117 | |
| 118 | |
| 119 | def findsource(obj) -> Tuple[Optional[Source], int]: |
| 120 | try: |
| 121 | sourcelines, lineno = inspect.findsource(obj) |
| 122 | except Exception: |
| 123 | return None, -1 |
| 124 | source = Source() |
| 125 | source.lines = [line.rstrip() for line in sourcelines] |
| 126 | return source, lineno |
| 127 | |
| 128 | |
| 129 | def getrawcode(obj: object, trycall: bool = True) -> types.CodeType: |