Skip to content

Commit e9df907

Browse files
Show parentheses after the completions for methods when using the DictionaryCompleter.
1 parent 6678053 commit e9df907

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ptpython/completer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,8 @@ def _get_attribute_completions(
553553
def get_suffix(name: str) -> str:
554554
try:
555555
obj = getattr(result, name, None)
556-
if inspect.isfunction(obj):
556+
if inspect.isfunction(obj) or inspect.ismethod(obj):
557557
return "()"
558-
559558
if isinstance(obj, dict):
560559
return "{}"
561560
if isinstance(obj, (list, tuple)):

0 commit comments

Comments
 (0)