Information about a Python function, including methods.
| 66 | |
| 67 | # Odd Function and Class signatures are for back-compatibility. |
| 68 | class Function(_Object): |
| 69 | "Information about a Python function, including methods." |
| 70 | def __init__(self, module, name, file, lineno, |
| 71 | parent=None, is_async=False, *, end_lineno=None): |
| 72 | super().__init__(module, name, file, lineno, end_lineno, parent) |
| 73 | self.is_async = is_async |
| 74 | if isinstance(parent, Class): |
| 75 | parent.methods[name] = lineno |
| 76 | |
| 77 | |
| 78 | class Class(_Object): |
no outgoing calls
no test coverage detected
searching dependent graphs…