fixed python data_driver

This commit is contained in:
fasiondog 2021-01-20 23:23:01 +08:00
parent ff30c6e1a0
commit 53da26723f
3 changed files with 6 additions and 10 deletions

View File

@ -47,13 +47,3 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
from .data_driver import (DataDriverFactory,
BaseInfoDriver,
BlockInfoDriver,
KDataDriver)
__all__ = ['DataDriverFactory',
'BaseInfoDriver',
'BlockInfoDriver',
'KDataDriver']

View File

@ -43,6 +43,9 @@ class jqdataKDataDriver(KDataDriver):
def __init__(self):
super(jqdataKDataDriver, self).__init__('jqdata')
def clone(self):
return jqdataKDataDriver()
def _init(self):
"""【重载接口】(可选)初始化子类私有变量"""
self._max = {

View File

@ -45,6 +45,9 @@ class PytdxKDataDriver(KDataDriver):
def __init__(self):
super(PytdxKDataDriver, self).__init__('pytdx')
def _clone(self):
return PytdxKDataDriver()
def _init(self):
"""【重载接口】(可选)初始化子类私有变量"""
self._max = {