Is it bad practice to include non-validating methods in a pydantic model?

Yes, it’s fine. We should probably document it.

The only problem comes when you have a field name which conflicts with the method, but that’s not a problem if you know what your data looks like. Also, it’s possible to over object orient your code, but you’re a long way from that.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)