uh oh
class MyException[T](Exception):
t: T
try:
raise MyException(7)
except MyException[int] as mei:
print(mei)
uh oh
class MyException[T](Exception):
t: T
try:
raise MyException(7)
except MyException[int] as mei:
print(mei)
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/glyph/statuses/114832191212042028 on your instance and quote it. (Note that quoting is not supported in Mastodon.)