HN user

sesuximo

618 karma
Posts5
Comments423
View on HN

PPS: I think my ideal type hint situation would be if I could create distinct but otherwise unconstrained types for things like function arguments and function returns, have mypy or other typing tools complain when I mixed them

Cleaner/safer function args and return types is a common motivation for dataclass. has benefits over many/complex args besides typing too.

providers could choose not to generate electricity for a grid if it were necessary

Enron basically forced this exact situation in order to charge inflated prices.

Maybe worse is that this isn’t even the reason they ended up in court.