Re:Python’s “type hints” are a bit of a disappointment to me
by oefrha on Thursday April 21, 2022 @09:06PM
(#31117096)
You can type Python dicts, see typing.TypedDict. It’s still lacking though, totality is all or nothing until py311, that is to say, TypedDict’s are either Required<T> or Partial<T> in TypeScript parlance. And you don’t get Pick<T>, Omit<T>, etc.
[ Parent
| on HN ]
There are no comments on this comment yet.