Skip to content

Commit 44397e8

Browse files
Fix in dictionary completion. Handle bug when numeric keys are used.
1 parent 85dab9a commit 44397e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptpython/completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def _get_item_lookup_completions(
388388
break
389389

390390
for k in result:
391-
if str(k).startswith(key_obj):
391+
if str(k).startswith(str(key_obj)):
392392
try:
393393
k_repr = self._do_repr(k)
394394
yield Completion(

0 commit comments

Comments
 (0)