MiniXC / simple-back

A simple daily python backtester that works out of the box.
Mozilla Public License 2.0
59 stars 12 forks source link

Add imports to init, to incorporate autocompletion of many Engines #1

Closed 1D0BE closed 4 years ago

1D0BE commented 4 years ago

In order to give autocompleters (e.g. IntelliSense) the possibility to autocomplete the classes defined by the package without problems, the following import should be added to __init__.py:

from .backtester import Backtester
from .price_providers import DailyPriceProvider, YahooFinanceProvider

__all__ = [
    "Backtester",
    "DailyPriceProvider",
    "YahooFinanceProvider"
]
MiniXC commented 4 years ago

fixed in c748117cfd5d08ca687f20eb3cd989f6bac83699, thanks for reporting