News for hackers. Stuff that matters.
Re:Strict Python function parameters by softwaredoug on Sunday January 23, 2022 @11:05AM (#30047198)
I was thinking this too, if a decorator could make this easier.

I'd also like whatever a solution is to work well with type annotations.

I'm surprised there isn't a pep to improve the situation. (Maybe there is and I haven't found it!)

Re:Strict Python function parameters by hultner on Sunday January 23, 2022 @11:45AM (#30047638)
There is, see my comment here:

https://news.ycombinator.com/item?id=30047413