kernc
kernc
> As far as I can see, the Markdown-processing parts of `pdoc` are strongly tied to processing modules Yeah, as this is an API docs generator and docs hierarchy following...
On pdoc3 0.8.4, Python 3.7, I can't seem to reproduce above-described behavior: :thinking: ```py # foo.py: from typing import Callable MyType = Callable[[str], str] """My function type""" import pdoc mod...
We reasonably support Python 3.5+ while that remains viable and in major OSs supported LTS releases. :sweat_smile: The reason type information is not shown is that `MyType` doesn't associate with...
I wholly agree. But documenting `MyType` as: ``` var MyType ``` instead of: ``` var MyType: Callable[[str], str] ``` is really _correct_ in Python terms, no? We might document those...
Thank you, PEP 613 and `TypeAlias` annotation seems like the way to go. :+1: As long as _you PR it_, :grin: I'm open to both: ``` var MyType: TypeAlias =...
Variable doc-comments were introduced in https://github.com/pdoc3/pdoc/pull/292. Your example works for me with [the latest version](https://pypi.org/project/pdoc3/). ```bash $ mkdir foo $ touch foo/__init__.py $ cat >foo/foo.py
Can you show a full example how you'd use it? [`pdoc.Class.obj`](https://pdoc3.github.io/pdoc/doc/pdoc/#pdoc.Doc.obj) points to the underlying `type` object. `Module` and `Function` likewise.
You need to pass the `context` instance to modules you create: ```py module = pdoc.Module(..., context=context) ``` Other than that, I don't see why module's `__pdoc__` would be ignored.
The traceback above indicates the issue is in these lines: https://github.com/pdoc3/pdoc/blob/c2c13200a630f97e5a7b2cba292b0dc9deb58b53/pdoc/cli.py#L417-L418 However, `args.output_dir` is only set to default non-None when `--html` or `--http`: https://github.com/pdoc3/pdoc/blob/c2c13200a630f97e5a7b2cba292b0dc9deb58b53/pdoc/cli.py#L440-L441 I think the condition here should...
https://github.com/pdoc3/pdoc/commit/251d61a6e252e92a12c77670f81a8d3d4b325642 should fix the traceback you quoted. Thanks. `--http :` stalling would be great to pinpoint. We don't have any infinite loops I think. Might any of the imported packages...