by codegeek · 2y ago · 0 comments
Are you considering adding other languages in the future ? I would like to try but not with NextJS. I have a special hate for JavaScript so I try to avoid it as much as possible except for Frontend.
Unfortunately, it tends to generate outdated types (e.g. `List` instead of `list`, `Optional[T]` instead of `T | None`, import `Iterable` from `typing` instead of `collections.abc`), so you always need to tell it to use the right one.
Edit: there is pyupgrade which can do this: https://github.com/asottile/pyupgrade#pep-585-typing-rewrite...