diff --git a/setup.py b/setup.py index bfc6b6c..e7cf6a2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup -__version__ = '2.0.5' +__version__ = '2.1.0' with open('README.rst', 'r', encoding='utf-8') as f: diff --git a/sgs/api.py b/sgs/api.py index 6601705..f90ebcb 100644 --- a/sgs/api.py +++ b/sgs/api.py @@ -48,7 +48,7 @@ def get_data_with_strict_range(ts_code: int, begin: str, end: str) -> List: period_start_date = to_datetime(begin, 'pt') try: - is_out_of_range = first_record_date < period_start_date + is_out_of_range = first_record_date < period_start_date #type: ignore if is_out_of_range: raise ValueError except TypeError: