ivknv / yadisk

Библиотека-клиент REST API Яндекс.Диска для Python / Yandex.Disk REST API client library for Python

Home Page:https://yadisk.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: 'type' object is not subscriptable

Iceazy opened this issue · comments

I just installed yadisk via pip install yadisk. And it raises error when I run import yadisk

`

import yadisk
Traceback (most recent call last):
File "", line 1, in
File "/home/timofei/.local/lib/python3.8/site-packages/yadisk/init.py", line 4, in
from .yadisk import YaDisk
File "/home/timofei/.local/lib/python3.8/site-packages/yadisk/yadisk.py", line 118, in
def _filter_kwargs_for_requests(kwargs: dict[str, Any]) -> None:
TypeError: 'type' object is not subscriptable

`

Thank you for the bug report. The fix is available in the dev branch, I'll publish the new version to PyPI in an hour or so.
In the meantime you can also use a newer Python version (3.9+).