diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2021-11-08 13:22:07 -0500 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2021-11-08 13:22:07 -0500 |
| commit | f9851f115b501add28b5b849821dd0525d82e960 (patch) | |
| tree | 224b1e722ebf093740bf28962e3fba6de5fb654d /python/bncompleter.py | |
| parent | a98466927f39c3a413583f0d4c99aca33a2bacb3 (diff) | |
add pep 484 and 561 compliance, fixes #2747
Diffstat (limited to 'python/bncompleter.py')
| -rw-r--r-- | python/bncompleter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/bncompleter.py b/python/bncompleter.py index 0063bf5f..ba012a2a 100644 --- a/python/bncompleter.py +++ b/python/bncompleter.py @@ -146,10 +146,10 @@ class Completer: word = word + ' ' matches.append(word) #Not sure why in the console builtins becomes a dict but this works for now. - if hasattr(__builtins__, '__dict__'): # type: ignore remove this ignore > pyright 1.1.149 - builtins = __builtins__.__dict__ # type: ignore remove this ignore > pyright 1.1.149 + if hasattr(__builtins__, '__dict__'): # type: ignore # remove this ignore > pyright 1.1.149 + builtins = __builtins__.__dict__ # type: ignore # remove this ignore > pyright 1.1.149 else: - builtins = __builtins__ # type: ignore remove this ignore > pyright 1.1.149 + builtins = __builtins__ # type: ignore # remove this ignore > pyright 1.1.149 for nspace in [self.namespace, builtins]: for word, val in nspace.items(): if word[:n] == text and word not in seen: |
