gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
55 stars 3 forks source link

TypeError: 'type' object is not subscriptable after April 19th's Update #3

Closed kilikilikid closed 2 years ago

kilikilikid commented 2 years ago

The error shows like this: image

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Highlight Code⁩': ⁨Traceback (most recent call last): File "aqt\addons.py", line 230, in loadAddons File "C:\Users\xxxx\AppData\Roaming\Anki2\addons21\112228974__init__.py", line 3, in from . import main File "C:\Users\xxxx\AppData\Roaming\Anki2\addons21\112228974\main.py", line 17, in from .assets import AnkiAssetManager, sync_assets File "C:\Users\xxxx\AppData\Roaming\Anki2\addons21\112228974\assets.py", line 70, in def list_my_assets(dir: pathlib.Path) -> list[str]: TypeError: 'type' object is not subscriptable

gregorias commented 2 years ago

Thank you reporting and I apologize for the inconvienence. My testing regime did not include previous Anki versions.