News for hackers. Stuff that matters.
Re:Strict Python function parameters by kuang_eleven on Sunday January 23, 2022 @05:18PM (#30051089)
As a counterpoint, I cannot stand Pydantic. Type hinting in function class parameters is super useful, but kludges like Pydantic that abuse Python to turn those into runtime checks? Never again.

I am currently finishing up a moderately sized project in FastAPI, and for my next project I will strongly be recommending using Starlette alone.

Re:Strict Python function parameters by daanluttik on Tuesday January 25, 2022 @06:17AM (#30070573)
Pydantic is great for parsing input either from api's or user input. You often want these runtime checks. But I would argue that the benefits lowers when you are not talking about cross-system interfaces
Re:Strict Python function parameters by nyellin on Monday January 24, 2022 @02:17AM (#30054496)
Why? What do you dislike about it?