From 61b4bb24e06aa955484293d35fa926c07887544b Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 7 Jun 2021 09:59:54 -0400 Subject: Add type hints to basicblock.py, lowlevelil.py, architecture.py --- python/bncompleter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/bncompleter.py') diff --git a/python/bncompleter.py b/python/bncompleter.py index 6f349ee1..62641a2a 100644 --- a/python/bncompleter.py +++ b/python/bncompleter.py @@ -44,6 +44,7 @@ import atexit import __main__ import inspect import sys +from typing import Optional __all__ = ["Completer"] @@ -92,7 +93,7 @@ class Completer: self.use_main_ns = 0 self.namespace = namespace - def complete(self, text, state): + def complete(self, text:str, state) -> Optional[str]: """Return the next possible completion for 'text'. This is called successively with state == 0, 1, 2, ... until it -- cgit v1.3.1