Replies: 2 comments 2 replies
-
|
Lol just quote the whole annotation works |
Beta Was this translation helpful? Give feedback.
-
|
...heh. You're awesome. Also, Self-caching. I actually ranted about this for five whole minutes on a Saturday evening on the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following setup is a
BeartypeDecorHintForwardRefExceptionat runtime, issue being resolution oflist["bear.bear_doubly_forward_a.A | None". Error isbeartype.roar.BeartypeDecorHintForwardRefException: Forward reference 'bear.bear_doubly_forward_a.A | None' not valid Python attribute name.. Obviously changing the type hint tolist[Optional["bear.bear_doubly_forward_a.A"]]works, but I don't want to use the deprecated hint.(Don't worry about the very suggestive filename I am definitely not trying something cursed, trust)
Beta Was this translation helpful? Give feedback.
All reactions