Added variable type annotations

This commit is contained in:
Gourav Kumar 2022-03-21 20:47:22 +05:30
parent a19f7e7b21
commit d24b0d8bb2

View File

@ -236,12 +236,12 @@ class TimeSeriesCore(UserDict):
self.data = dict(data) self.data = dict(data)
if len(self.data) != len(data): if len(self.data) != len(data):
print("Warning: The input data contains duplicate dates which have been ignored.") print("Warning: The input data contains duplicate dates which have been ignored.")
self.frequency = getattr(AllFrequencies, frequency) self.frequency: Frequency = getattr(AllFrequencies, frequency)
self.iter_num = -1 self.iter_num: int = -1
self._dates = None self._dates: list = None
self._values = None self._values: list = None
self._start_date = None self._start_date: datetime.datetime = None
self._end_date = None self._end_date: datetime.datetime = None
@property @property
def dates(self) -> Series: def dates(self) -> Series: