Re:A Failed Experiment with Python Type Annotations
by joshuamorton on Tuesday June 11, 2019 @09:54PM
(#20161097)
> * lack of immutable vectors, alleviated via style conventions
Note that mypy/typed python fixes this: if you annotate a function as returning (or accepting) a Sequence/Collection/Iterable instead of a List, and attempt to mutate it, you'll get type errors. This is good practice anyway.
Note that mypy/typed python fixes this: if you annotate a function as returning (or accepting) a Sequence/Collection/Iterable instead of a List, and attempt to mutate it, you'll get type errors. This is good practice anyway.