From d24b0d8bb2d32c0dbe7beea46d5211663009cd5d Mon Sep 17 00:00:00 2001 From: gouravkr Date: Mon, 21 Mar 2022 20:47:22 +0530 Subject: [PATCH] Added variable type annotations --- fincal/core.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fincal/core.py b/fincal/core.py index 67c7416..fd22036 100644 --- a/fincal/core.py +++ b/fincal/core.py @@ -236,12 +236,12 @@ class TimeSeriesCore(UserDict): self.data = dict(data) if len(self.data) != len(data): print("Warning: The input data contains duplicate dates which have been ignored.") - self.frequency = getattr(AllFrequencies, frequency) - self.iter_num = -1 - self._dates = None - self._values = None - self._start_date = None - self._end_date = None + self.frequency: Frequency = getattr(AllFrequencies, frequency) + self.iter_num: int = -1 + self._dates: list = None + self._values: list = None + self._start_date: datetime.datetime = None + self._end_date: datetime.datetime = None @property def dates(self) -> Series: