(
matches: Sequence[AnyCompletion],
)
| 3736 | |
| 3737 | @staticmethod |
| 3738 | def _deduplicate( |
| 3739 | matches: Sequence[AnyCompletion], |
| 3740 | ) -> Iterable[AnyCompletion]: |
| 3741 | filtered_matches: dict[str, AnyCompletion] = {} |
| 3742 | for match in matches: |
| 3743 | text = match.text |
| 3744 | if ( |
| 3745 | text not in filtered_matches |
| 3746 | or filtered_matches[text].type == _UNKNOWN_TYPE |
| 3747 | ): |
| 3748 | filtered_matches[text] = match |
| 3749 | |
| 3750 | return filtered_matches.values() |
| 3751 | |
| 3752 | @staticmethod |
| 3753 | def _sort(matches: Sequence[AnyCompletion]): |
no outgoing calls
no test coverage detected