-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor parsing of function
CodeInput
using ast
With `ast` we have to use less regex tricks and can rely that the function is properly parsed. Docstring is now also considering a linebreak at the beginning. Annotations of input arguments are now supported. Default arguments are now supported. We even support expressions as default arguments e.g lambda functions. Arbitrary keyword arguments now supported.
- Loading branch information
1 parent
934a46a
commit c38e445
Showing
2 changed files
with
123 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters