google / google/python-fire

How to display class functions in help?

Aperta
#381 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
28.2k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey,
I am using a class like:
```
class Foo:
def __init__(self, name):
self.name=name

@property
def info(self):
return self.name

def do_somthing(self, arg1):
return do_it(arg1)

if __name__ == '__main__':
fire.Fire(Foo)
```
I like to be able to see in the help the functions/properties in Foo class not only the args in the constructor.
Does it possible?

Thanks

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.