MCPcopy Create free account
hub / github.com/kernc/backtesting.py / _replace

Method _replace

backtesting/backtesting.py:582–585  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

580 f'{" tag=" + str(self.__tag) if self.__tag is not None else ""}>'
581
582 def _replace(self, **kwargs):
583 for k, v in kwargs.items():
584 setattr(self, f'_{self.__class__.__qualname__}__{k}', v)
585 return self
586
587 def _copy(self, **kwargs):
588 return copy(self)._replace(**kwargs)

Callers 1

dummy_statsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected