Skip to content

Sphinx Doc Warnings #266

Open
Open

Description

@robintibor

We have a lot of Sphinx Doc Warnings, some of which we don't know where they come from. We should aim towards zero warnings.
Some examples:

/home/robintibor/work/braindecode-dev/braindecode/braindecode/models/tcn.py:docstring of torch.nn.modules.module.Module.to:12: WARNING: duplicate object description of braindecode.models.TCN.to, other instance in generated/braindecode.models.TCN, use :noindex: for one of them
/home/robintibor/work/braindecode-dev/braindecode/braindecode/preprocessing/preprocess.py:docstring of braindecode.preprocessing.preprocess.Preprocessor:1: WARNING: duplicate object description of braindecode.preprocessing.preprocess.Preprocessor, other instance in generated/braindecode.datautil.Preprocessor, use :noindex: for one of them
/home/robintibor/work/braindecode-dev/braindecode/braindecode/samplers/base.py:docstring of braindecode.samplers.base.RecordingSampler:14: WARNING: Block quote ends without a blank line; unexpected unindent.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.add_module:9: WARNING: Definition list ends without a blank line; unexpected unindent.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.named_buffers:8: WARNING: Unexpected indentation.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.named_parameters:8: WARNING: Unexpected indentation.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.register_buffer:18: WARNING: Definition list ends without a blank line; unexpected unindent.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.register_buffer:20: WARNING: Unexpected indentation.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.register_parameter:9: WARNING: Definition list ends without a blank line; unexpected unindent.
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.to:6: WARNING: duplicate object description of braindecode.training.CroppedLoss.to, other instance in generated/braindecode.training.CroppedLoss, use :noindex: for one of them
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.to:8: WARNING: duplicate object description of braindecode.training.CroppedLoss.to, other instance in generated/braindecode.training.CroppedLoss, use :noindex: for one of them
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.to:10: WARNING: duplicate object description of braindecode.training.CroppedLoss.to, other instance in generated/braindecode.training.CroppedLoss, use :noindex: for one of them
/home/robintibor/work/braindecode-dev/braindecode/braindecode/training/losses.py:docstring of torch.nn.modules.module.Module.to:12: WARNING: duplicate object description of braindecode.training.CroppedLoss.to, other instance in generated/braindecode.training.CroppedLoss, use :noindex: for one of them

Activity

  1. added
    intermediate
    on Jun 22, 2021
  2. robintibor commented on Jun 22, 2021

    @robintibor
    ContributorAuthor

    Trying to look at this a little bit myself

  3. bruAristimunha commented on Jul 23, 2022

    @bruAristimunha
    Collaborator

    Hello Robin, I will try to solve the warning.

  4. robintibor commented on Aug 1, 2022

    @robintibor
    ContributorAuthor

    great

  5. added this to the 0.7 milestone on Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

code-improvementintermediate

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions