twisted / pydoctor

This is pydoctor, an API documentation generator that works by static analysis.
https://pydoctor.readthedocs.io
Other
189 stars 50 forks source link

Additional support for ast expression in colorizer #712

Open tristanlatr opened 1 year ago

tristanlatr commented 1 year ago

https://github.com/twisted/pydoctor/blob/9106701fa5d0718228b2fbd1cc8ba63344a4104b/pydoctor/epydoc/markup/_pyval_repr.py#L498

There are still a couple of expressions type that we can’t colorize like lambda functions or f-strings.

tristanlatr commented 1 year ago

Also we should be able to do something better about expressions like something().name: it’s currently colorized using fallback unparse function from astor so no links are generated. But should be able to link to something instead of giving up.