diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-06-07 09:59:54 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-05 10:08:09 -0400 |
| commit | 61b4bb24e06aa955484293d35fa926c07887544b (patch) | |
| tree | 29c6b7fecdac6270681260637439926ec07a259e /python/bncompleter.py | |
| parent | 75f2463a46cc666e87120f3a30332fa80020b62e (diff) | |
Add type hints to basicblock.py, lowlevelil.py, architecture.py
Diffstat (limited to 'python/bncompleter.py')
| -rw-r--r-- | python/bncompleter.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
