-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any snippet using python-args-to-docstring returns Wrong type argument: listp #505
Comments
Simple test (after loading the definitions (let ((yas-text "foo"))
(python-args-to-docstring)) Output:
|
As a quick bugfix, this snippet works: (defun python-split-args (arg-string)
"Split a python argument string ARG-STRING into a list ((name), ...) of argument names."
(mapcar 'list
(mapcar (lambda (x)
(when (string-match python-split-arg-arg-regex x)
(match-string-no-properties 1 x)))
(split-string arg-string python-split-arg-separator t)))) It does not keep the default values or types, though. |
quazgar
pushed a commit
to quazgar/yasnippet-snippets
that referenced
this issue
Nov 4, 2024
This should fix AndreaCrotti#505 "Any snippet using python-args-to-docstring returns Wrong type argument: listp" and also adds type hints to the docstring again.
quazgar
pushed a commit
to quazgar/yasnippet-snippets
that referenced
this issue
Nov 4, 2024
This should fix AndreaCrotti#505 "Any snippet using python-args-to-docstring returns Wrong type argument: listp" and also adds type hints to the docstring again.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe issue #1200 from yasnippet rather belongs here? Possibly introduced by #465,
I can reproduce this with plain Emacs:
The text was updated successfully, but these errors were encountered: