Commit graph

7 commits

Author SHA1 Message Date
Jennifer Taylor
d3ce7da7ce Drop annotation indicator attribute.
We pass down the correct default annotation indicator to use in 100% of code rendering places, so this becomes a useless bit of initialization. We already set this to a sentinel by default, and the only thing that having an explicit str gives us is the inability to copy an annotation from a param to a return or vice versa. So, out it goes. This means we can't render Annotation by itself, so the test that was using this behavior is out too.
2019-08-05 17:13:17 -07:00
Jennifer Taylor
9ca3d39fb6 Rename Ellipses to Ellipsis to match AST and Python stuff. 2019-08-02 17:17:38 -07:00
Jennifer Taylor
64ff2b1996 Better repr for partial configuration.
This adds a __repr__ to various types in the parser config, so that the
generated documentation for functions using these types renders easier
to read.
2019-08-01 16:14:12 -07:00
Jennifer Taylor
47a3c75670 Add documentation for parse_module and parse_expression. 2019-08-01 14:55:19 -07:00
Jennifer Taylor
47be0b1681 Hardcode parser version to Python 3.7 for now. 2019-08-01 14:04:38 -07:00
Benjamin Woodruff
c7fa739087 Add parser for Dict and DictComp
This finishes the parser! 🎉

A few related changes were made:
- `DummyNode` was removed, as it's no longer needed.
- `lpar`/`rpar` was removed from `StarredDictElement`, because I found
  out that it's not valid syntax while developing the parsing logic.
2019-07-31 13:07:01 -07:00
Jennifer Taylor
3fb60b9706 Make parser package private
Now that this is imported from the top level, make it private.
2019-07-26 12:48:22 -07:00