tbapi.api.models.data_series
1from __future__ import annotations 2from typing import TYPE_CHECKING 3from tbapi.common.decorators import tb_class, tb_interface 4from tbapi.common.converters import to_python_datetime, to_net_datetime 5from datetime import datetime 6from Tickblaze.Scripts.Api.Models import DataSeries as _DataSeries 7from typing import Any, overload 8from abc import ABC, abstractmethod 9from tbapi.api.series import Series 10 11@tb_class(_DataSeries) 12class DataSeries(Series): 13 """Represents a series of double values for data points, with a default value of .""" 14 15 @overload 16 @staticmethod 17 def new() -> "DataSeries": 18 """Constructor overload with arguments: """ 19 ... 20 @staticmethod 21 def new(*args, **kwargs): 22 """Generic factory method for DataSeries. Use overloads for IDE type hints.""" 23 return DataSeries(*args, **kwargs)
19@tb_class(_DataSeries) 20class DataSeries(Series): 21 """Represents a series of double values for data points, with a default value of .""" 22 23 @overload 24 @staticmethod 25 def new() -> "DataSeries": 26 """Constructor overload with arguments: """ 27 ... 28 @staticmethod 29 def new(*args, **kwargs): 30 """Generic factory method for DataSeries. Use overloads for IDE type hints.""" 31 return DataSeries(*args, **kwargs)
Represents a series of double values for data points, with a default value of .
@staticmethod
def
new(*args, **kwargs):
28 @staticmethod 29 def new(*args, **kwargs): 30 """Generic factory method for DataSeries. Use overloads for IDE type hints.""" 31 return DataSeries(*args, **kwargs)
Generic factory method for DataSeries. Use overloads for IDE type hints.