(
self,
tp: CallableType | Overloaded,
context: Context,
*,
parent_error: ErrorInfo,
offset: int = 0,
add_class_or_static_decorator: bool = False,
)
| 1301 | self.note(override_str, context, offset=ALIGN_OFFSET + 2 * OFFSET, parent_error=error) |
| 1302 | |
| 1303 | def pretty_callable_or_overload( |
| 1304 | self, |
| 1305 | tp: CallableType | Overloaded, |
| 1306 | context: Context, |
| 1307 | *, |
| 1308 | parent_error: ErrorInfo, |
| 1309 | offset: int = 0, |
| 1310 | add_class_or_static_decorator: bool = False, |
| 1311 | ) -> None: |
| 1312 | if isinstance(tp, CallableType): |
| 1313 | if add_class_or_static_decorator: |
| 1314 | decorator = pretty_class_or_static_decorator(tp) |
| 1315 | if decorator is not None: |
| 1316 | self.note(decorator, context, offset=offset, parent_error=parent_error) |
| 1317 | self.note( |
| 1318 | pretty_callable(tp, self.options), |
| 1319 | context, |
| 1320 | offset=offset, |
| 1321 | parent_error=parent_error, |
| 1322 | ) |
| 1323 | elif isinstance(tp, Overloaded): |
| 1324 | self.pretty_overload( |
| 1325 | tp, |
| 1326 | context, |
| 1327 | offset, |
| 1328 | add_class_or_static_decorator=add_class_or_static_decorator, |
| 1329 | parent_error=parent_error, |
| 1330 | ) |
| 1331 | |
| 1332 | def argument_incompatible_with_supertype( |
| 1333 | self, |
no test coverage detected