Invalid escape sequence '\_' in */client/data_classes/data_modeling/query.py (line 78) causes raising SyntaxError while running tests
andrii-sventukh opened this issue · 2 comments
System information (please complete the following information):
- OS: [Debian]
- Python Version: [3.11]
- SDK Version: [7.24.0]
Describe the bug
While running pytest for code using cognite-sdk error SyntaxError: invalid escape sequence '_' arises due to probably typo in /client/data_classes/data_modeling/query.py", line 78
To Reproduce
run
poetry run pytest
for code containing import "from cognite.client._cognite_client import CogniteClient"
Expected behavior
no errors, as just cognite-sdk version has been changed from 6.* to 7.*
Just adding "r" before """docstring""" or removing "" from the one in /client/data_classes/data_modeling/query.py", line 78 solves the issue
Hi @andrii-sventukh-MDTU-VOL and thanks for raising the issue! This is an oversight, seems we forgot one that should have been removed in v7!
I've made a fix here: #1651
Thanks a lot! Will the fixed version be available on PyPI soon?