NiklasRosenstein / pydoc-markdown

Create Python API documentation in Markdown format.
http://niklasrosenstein.github.io/pydoc-markdown/
Other
462 stars 105 forks source link

Calling pydoc-markdown with `--render-toc` option causes an exception. #213

Closed rcdtx closed 3 years ago

rcdtx commented 3 years ago

Environment

Describe the bug Calling pydoc-markdown with --render-toc option causes a TypeError exception.

command: pydoc-markdown -I . --render-toc

error: Traceback (most recent call last): File ".../bin/pydoc-markdown", line 8, in sys.exit(cli()) File ".../lib64/python3.9/site-packages/click/core.py", line 829, in call return self.main(args, kwargs) File ".../lib64/python3.9/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File ".../lib64/python3.9/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File ".../lib64/python3.9/site-packages/click/core.py", line 610, in invoke return callback(args, **kwargs) File ".../lib64/python3.9/site-packages/pydoc_markdown/main.py", line 332, in cli pydocmd = session.load() File ".../lib64/python3.9/site-packages/pydoc_markdown/main.py", line 122, in load self._apply_overrides(config) File ".../lib64/python3.9/site-packages/pydoc_markdown/main.py", line 101, in _apply_overrides schema = dataclass_to_schema(type(config.renderer)) TypeError: dataclass_to_schema() missing 1 required positional argument: 'type_hint_adapter'

NiklasRosenstein commented 3 years ago

Thanks for reporting this, @rcdtx! Fixed in 4.3.1 :)