Re:Ask HN: Coming back to Python after a 5 year hiatus–-what...
by habitue on Monday January 18, 2021 @01:15PM
(#25824714)
Ah, so mypy supports fstrings, but not in types. So you can do
But this won't work:
(Yes, this is super contrived, I bad at coming up with examples, but
https://mariusschulz.com/blog/string-literal-types-in-typesc... shows some realistic examples where it's useful in typescript)
[ Parent
| on HN ]
There are no comments on this comment yet.