Skip to content

How to render class args? #234

@albertvillanova

Description

@albertvillanova

I am trying to make appear in the docs the class args for datasets.DatasetBuilder without success:

I have tried:

  • putting args in docstring at the class level and also at the __init__ method
  • adding "all" to autodoc directive

I took as example transformers.Trainer: https://huggingface.co/docs/transformers/main/en/main_classes/trainer#transformers.Trainer

What should I do to make it work?
Thank you.

P.S.: I open an issue as I think this might be useful to other users as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions