Match attributes or global python names. .. deprecated:: 8.27 You can use :meth:`python_matcher` instead.
(self, text: str)
| 2814 | |
| 2815 | @completion_matcher(api_version=1) |
| 2816 | def python_matches(self, text: str) -> Iterable[str]: |
| 2817 | """Match attributes or global python names. |
| 2818 | |
| 2819 | .. deprecated:: 8.27 |
| 2820 | You can use :meth:`python_matcher` instead.""" |
| 2821 | if "." in text: |
| 2822 | try: |
| 2823 | matches = self.attr_matches(text) |
| 2824 | if text.endswith('.') and self.omit__names: |
| 2825 | if self.omit__names == 1: |
| 2826 | # true if txt is _not_ a __ name, false otherwise: |
| 2827 | no__name = (lambda txt: |
| 2828 | re.match(r'.*\.__.*?__',txt) is None) |
| 2829 | else: |
| 2830 | # true if txt is _not_ a _ name, false otherwise: |
| 2831 | no__name = (lambda txt: |
| 2832 | re.match(r'\._.*?',txt[txt.rindex('.'):]) is None) |
| 2833 | matches = filter(no__name, matches) |
| 2834 | except NameError: |
| 2835 | # catches <undefined attributes>.<tab> |
| 2836 | matches = [] |
| 2837 | else: |
| 2838 | matches = self.global_matches(text) |
| 2839 | return matches |
| 2840 | |
| 2841 | def _default_arguments_from_docstring(self, doc): |
| 2842 | """Parse the first line of docstring for call signature. |
nothing calls this directly
no test coverage detected