(
self,
tp: Overloaded,
context: Context,
offset: int,
*,
parent_error: ErrorInfo,
add_class_or_static_decorator: bool = False,
skip_self: bool = False,
)
| 2417 | self.print_more(conflict_flags, context, OFFSET, MAX_ITEMS, code=parent_error.code) |
| 2418 | |
| 2419 | def pretty_overload( |
| 2420 | self, |
| 2421 | tp: Overloaded, |
| 2422 | context: Context, |
| 2423 | offset: int, |
| 2424 | *, |
| 2425 | parent_error: ErrorInfo, |
| 2426 | add_class_or_static_decorator: bool = False, |
| 2427 | skip_self: bool = False, |
| 2428 | ) -> None: |
| 2429 | for item in tp.items: |
| 2430 | self.note("@overload", context, offset=offset, parent_error=parent_error) |
| 2431 | |
| 2432 | if add_class_or_static_decorator: |
| 2433 | decorator = pretty_class_or_static_decorator(item) |
| 2434 | if decorator is not None: |
| 2435 | self.note(decorator, context, offset=offset, parent_error=parent_error) |
| 2436 | |
| 2437 | self.note( |
| 2438 | pretty_callable(item, self.options, skip_self=skip_self), |
| 2439 | context, |
| 2440 | offset=offset, |
| 2441 | parent_error=parent_error, |
| 2442 | ) |
| 2443 | |
| 2444 | def print_more( |
| 2445 | self, |
no test coverage detected