From f9851f115b501add28b5b849821dd0525d82e960 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Mon, 8 Nov 2021 13:22:07 -0500 Subject: add pep 484 and 561 compliance, fixes #2747 --- 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 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: -- cgit v1.3.1