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

Added support for 'func' being a classmethod, with the 'klass' option. #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZackHodari
Copy link

If func is a classmethod then it is not possible to use .. argparse:: without adding python code to the source (which should not be necessary).

The PR simply adds an option to specify the class (klass).

@laf0rge
Copy link

laf0rge commented Apr 4, 2021

I only see this now, after implementing #136.

I first had a similar approach than @ZackHodari but then I needed a method within a class of a class, and then the 'klass' attribute approach fails. So instead, I added support for hierarchical class.class.func kind of notation in #136.

Sad to see this PR has received no feedback in 21 months :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants