We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c93ad2 commit 52aa5a0Copy full SHA for 52aa5a0
backtesting/lib.py
@@ -639,7 +639,7 @@ def optimize(self, **kwargs) -> pd.DataFrame:
639
640
__all__ = [getattr(v, '__name__', k)
641
for k, v in globals().items() # export
642
- if ((callable(v) and v.__module__ == __name__ or # callables from this module
+ if ((callable(v) and getattr(v, '__module__', None) == __name__ or # callables from this module
643
k.isupper()) and # or CONSTANTS
644
not getattr(v, '__name__', k).startswith('_'))] # neither marked internal
645
0 commit comments