Skip to content

Commit ef8422b

Browse files
committed
le-python.el (lispy-python-completion-at-point): Works for non-string dict keys
1 parent cbfa191 commit ef8422b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

le-python.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,12 @@ If so, return an equivalent of ITEM = ARRAY_LIKE[IDX]; ITEM."
736736
(list (point) (point)
737737
(if (> (length quote_str) 0)
738738
keys
739-
(mapcar (lambda (s) (concat "\"" s "\"")) keys)))))
739+
(mapcar
740+
(lambda (s)
741+
(if (stringp s)
742+
(concat "\"" s "\"")
743+
(prin1-to-string s)))
744+
keys)))))
740745
((lispy-complete-fname-at-point))
741746
(t
742747
(let* ((bnd (lispy-python-symbol-bnd))

0 commit comments

Comments
 (0)