From 8f541afd85e7ffb1165a9d50f00a3431f2ef256f Mon Sep 17 00:00:00 2001 From: Rafael Alves Ribeiro Date: Tue, 3 Nov 2020 23:24:02 -0300 Subject: [PATCH] Adiciona a funcionalidade de strict para os dados retornados da API e faz o bump da versao --- setup.py | 2 +- sgs/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: