Giter Site home page Giter Site logo

Comments (4)

erwann-met avatar erwann-met commented on May 24, 2024

Related issue on ruff: astral-sh/ruff#5442

from pydoclint.

jsh9 avatar jsh9 commented on May 24, 2024

Thanks for reporting this! Very interesting case.

The root cause is: pydoclint uses numpydoc, the official numpy docstring library, to parse numpy-style docstrings. Without the blank line before Returns, the parser thinks that there isn't a return section, and -------- and Returns: are actually input arguments.

Please note that the use of numpydoc in pydoclint is probably one of the reason that it's much faster than darglint. (I think darglint's author implemented a custom docstring parser.)

It's probably not feasible for pydoclint to "hack into" numpydoc's internal code.

Do you have suggestions of a solution?

from pydoclint.

erwann-met avatar erwann-met commented on May 24, 2024

I think that as soon as ruff rule D410 is fixed, this should not be an issue any more.
This might be out of the scope of pydoclint indeed.

from pydoclint.

jsh9 avatar jsh9 commented on May 24, 2024

Closing this issue. No actions needed.

(If I closed this issue by accident, please feel free to leave a comment here.)

from pydoclint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.