mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 04:02:24 +00:00
minor adjustments
This commit is contained in:
@@ -34,7 +34,7 @@ class ArgparseClassProcessor:
|
||||
Process the methods of the target class to create ArgparseTranslators.
|
||||
"""
|
||||
for name, method in inspect.getmembers(self._target_class, inspect.ismethod):
|
||||
if name.startswith("__"):
|
||||
if name.startswith("__") or name.startswith("_"):
|
||||
continue
|
||||
|
||||
self._translators[self._menu_designation][name] = ArgparseTranslator(
|
||||
|
||||
@@ -315,9 +315,10 @@ class ArgparseTranslator:
|
||||
return wrapper_func
|
||||
|
||||
|
||||
# from openbb_sdk.openbb import obb
|
||||
# from openbb import obb
|
||||
|
||||
# translator = ArgparseTranslator(obb.stocks.load)
|
||||
# stocks_load = translator.translate()
|
||||
# result = stocks_load()
|
||||
|
||||
# translator = ArgparseTranslator(obb.equity.price.historical)
|
||||
# equity_historical_price = translator.translate()
|
||||
# result = equity_historical_price()
|
||||
# print(result)
|
||||
|
||||
Reference in New Issue
Block a user