Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jon-wood
5 months ago
|
parent
|
context
|
favorite
| on:
Keep Pydantic out of your Domain Layer
I’m curious, what do you mean by having to wonder if it’s really a User? It’s optional in Python but you can use type annotations and then the type checker will shout at you for passing something that’s not a User instance to things that expect one.
brap
5 months ago
[–]
The type checker can be ignored in all sorts of ways
akkad33
5 months ago
|
parent
[–]
I mean, that is implicit in the statement. The question is how
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: