summaryrefslogtreecommitdiff
path: root/python/bncompleter.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-23 20:20:50 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:09:09 -0400
commitbc5c0977dc5b4087e8f39cc67089bb5709aac04e (patch)
tree2e955215d9a9000a84412f814d011248f6bdbe5d /python/bncompleter.py
parent421b398453d09e06e7b202229e34b66414683a45 (diff)
type hints for highlevelil.py, mediumlevelil.py and lowlevelil.py, workflow.py
Fix linter error in scriptingprovider.py Update workflow.py using updated paradigms and type hints
Diffstat (limited to 'python/bncompleter.py')
-rw-r--r--python/bncompleter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/bncompleter.py b/python/bncompleter.py
index 62641a2a..330cf0d0 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__'):
- builtins = __builtins__.__dict__
+ 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__
+ 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: