awalon/MailToTelegramForwarder

TypeError: 'type' object is not subscriptable

xycainoff opened this issue · 4 comments

trying to execute script:

Traceback (most recent call last):
File "/usr/local/bin/mailToTelegramForwarder", line 278, in
class MailBody:
File "/usr/local/bin/mailToTelegramForwarder", line 281, in MailBody
images: typing.Optional[dict[str, MailAttachment]] = None
TypeError: 'type' object is not subscriptable

version
Python 3.7.3

Same error with version 0.2.2
Version Python 3.7.3

With version Python 3.9.2, it's good 👍

awalon commented

Hello @xycainoff, sorry for late response.
Is it working for you as well with Python 3.9.2 or newer?