Tinkoff / invest-python

Tinkoff Invest Python gRPC client
https://tinkoff.github.io/invest-python/
Apache License 2.0
311 stars 89 forks source link

[Bug] TypeError: can't compare offset-naive and offset-aware datetimes #46

Closed DimartGit closed 2 years ago

DimartGit commented 2 years ago

Что случилось?

Ошибка выполнения

File "..\site-packages\tinkoff\invest\utils.py", line 27, in get_intervals while local_from + interval_timedelta <= to:

TypeError: can't compare offset-naive and offset-aware datetimes

Воспроизведение

запустить файл из поставки https://github.com/Tinkoff/invest-python/blob/main/examples/all_candles.py

Tinkoff Invest Version

0.2.0-beta21

Python Version

3.9

OS

Windows

Логи

No response

irusland commented 2 years ago

Фикс https://github.com/Tinkoff/invest-python/pull/47