Match string keys in a dictionary, after e.g. ``foo[``.
(self, context: CompletionContext)
| 3012 | |
| 3013 | @context_matcher() |
| 3014 | def dict_key_matcher(self, context: CompletionContext) -> SimpleMatcherResult: |
| 3015 | """Match string keys in a dictionary, after e.g. ``foo[``.""" |
| 3016 | matches = self.dict_key_matches(context.token) |
| 3017 | return _convert_matcher_v1_result_to_v2( |
| 3018 | matches, type="dict key", suppress_if_matches=True |
| 3019 | ) |
| 3020 | |
| 3021 | def dict_key_matches(self, text: str) -> list[str]: |
| 3022 | """Match string keys in a dictionary, after e.g. ``foo[``. |
nothing calls this directly
no test coverage detected