Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'type' object is not subscriptable #14

Open
xycainoff opened this issue Dec 2, 2022 · 4 comments
Open

TypeError: 'type' object is not subscriptable #14

xycainoff opened this issue Dec 2, 2022 · 4 comments

Comments

@xycainoff
Copy link

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

@xycainoff
Copy link
Author

version
Python 3.7.3

@jbdu12
Copy link

jbdu12 commented Dec 27, 2022

Same error with version 0.2.2
Version Python 3.7.3

@jbdu12
Copy link

jbdu12 commented Dec 27, 2022

With version Python 3.9.2, it's good 👍

@awalon
Copy link
Owner

awalon commented Jul 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants