We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d4b0b0 commit ea6b2c5Copy full SHA for ea6b2c5
ptpython/completer.py
@@ -568,9 +568,9 @@ def get_suffix(name: str) -> str:
568
obj = getattr(result, name, None)
569
if inspect.isfunction(obj) or inspect.ismethod(obj):
570
return "()"
571
- if isinstance(obj, dict):
+ if isinstance(obj, collections_abc.Mapping):
572
return "{}"
573
- if isinstance(obj, (list, tuple)):
+ if isinstance(obj, collections_abc.Sequence):
574
return "[]"
575
except:
576
pass
0 commit comments