tbapi.api.parameters
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 import Parameters as _Parameters 7from typing import Any, overload 8from abc import ABC, abstractmethod 9from tbapi.api.indexed_dictionary import IndexedDictionary 10 11@tb_class(_Parameters) 12class Parameters(IndexedDictionary): 13 """Represents a collection of parameters, either from an object or a dictionary of key-value pairs.""" 14 15 @overload 16 @staticmethod 17 def new(obj: Any) -> "Parameters": 18 """Constructor overload with arguments: obj""" 19 ... 20 @staticmethod 21 def new(*args, **kwargs): 22 """Generic factory method for Parameters. Use overloads for IDE type hints.""" 23 return Parameters(*args, **kwargs)
19@tb_class(_Parameters) 20class Parameters(IndexedDictionary): 21 """Represents a collection of parameters, either from an object or a dictionary of key-value pairs.""" 22 23 @overload 24 @staticmethod 25 def new(obj: Any) -> "Parameters": 26 """Constructor overload with arguments: obj""" 27 ... 28 @staticmethod 29 def new(*args, **kwargs): 30 """Generic factory method for Parameters. Use overloads for IDE type hints.""" 31 return Parameters(*args, **kwargs)
Represents a collection of parameters, either from an object or a dictionary of key-value pairs.