From bc5c0977dc5b4087e8f39cc67089bb5709aac04e Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 23 Jun 2021 20:20:50 -0400 Subject: 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 --- python/bncompleter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/bncompleter.py') 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: -- cgit v1.3.1