Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Improve recognition of functions through assignments #299

Open
pawamoy opened this issue Jul 1, 2024 · 0 comments
Open

feature: Improve recognition of functions through assignments #299

pawamoy opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@pawamoy
Copy link
Member

pawamoy commented Jul 1, 2024

Is your feature request related to a problem? Please describe.

Functions created using partial are not recognized as functions but as attributes. mkdocstrings renders them as attributes, which is not great.

Describe the solution you'd like

Ideally Griffe would support partial-like things from the standard lib to transform such attributes into functions. Maybe this should be supported through an extension, like for dataclasses, depending on the difficulty of merging signatures of the partial and the function passed as argument (which could be a partial too).

Describe alternatives you've considered

/

Additional context

/

@pawamoy pawamoy added the feature New feature or request label Jul 1, 2024
@pawamoy pawamoy self-assigned this Jul 1, 2024
@pawamoy pawamoy added the fund Issue priority can be boosted label Oct 22, 2024
@pawamoy pawamoy removed the fund Issue priority can be boosted label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant