diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2023-12-17 10:46:40 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2023-12-17 10:46:40 +0000 |
commit | 4e61276ae3a4432a9d7a65dd49eb6ae71dd5f93a (patch) | |
tree | 57f9ac8ea7edafc3db4db312b8a369ab39711636 /ptpython/completer.py | |
parent | Adding upstream version 3.0.23. (diff) | |
download | ptpython-4e61276ae3a4432a9d7a65dd49eb6ae71dd5f93a.tar.xz ptpython-4e61276ae3a4432a9d7a65dd49eb6ae71dd5f93a.zip |
Adding upstream version 3.0.25.upstream/3.0.25
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'ptpython/completer.py')
-rw-r--r-- | ptpython/completer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ptpython/completer.py b/ptpython/completer.py index f28d2b1..91d6647 100644 --- a/ptpython/completer.py +++ b/ptpython/completer.py @@ -6,7 +6,7 @@ import inspect import keyword import re from enum import Enum -from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Tuple +from typing import TYPE_CHECKING, Any, Callable, Iterable from prompt_toolkit.completion import ( CompleteEvent, @@ -259,7 +259,7 @@ class JediCompleter(Completer): # See: https://github.com/jonathanslenders/ptpython/issues/223 pass except Exception: - # Supress all other Jedi exceptions. + # Suppress all other Jedi exceptions. pass else: # Move function parameters to the top. @@ -367,7 +367,7 @@ class DictionaryCompleter(Completer): rf""" {expression} - # Dict loopup to complete (square bracket open + start of + # Dict lookup to complete (square bracket open + start of # string). \[ \s* ([^\[\]]*)$ @@ -380,7 +380,7 @@ class DictionaryCompleter(Completer): rf""" {expression} - # Attribute loopup to complete (dot + varname). + # Attribute lookup to complete (dot + varname). \. \s* ([a-zA-Z0-9_]*)$ """, |