David Salvisberg

Results 127 comments of David Salvisberg

> Thanks for contributing! I couldn't find any prior discussion about adding type hints directly to the package, but it does seem like preferred option, so I think it's worth...

> Is there a way to influence the converters to handle this case? Yes, you can write a custom converter for the policy area format, so any values that don't...

> I saw that files types are handled differently for `view_upload_file_by_json` in `handle_file_upload`. Basically all file types are allowed. Shall we keep this? We can make sure to set `supported_content_types`...

> Should I completely remove type `application/octet-stream` ? It is mostly used in conjunction with `application/zip` It's probably fine to remove it for now. There may however be the rare...

I generally use `assert isinstance(field.errors, list)` in my code when I need to append errors inside a validator. I think there is some value to having the default be immutable,...

I did consider writing the stubs to be more permissive initially, but I ultimately decided against it, since `FormField` and `FieldList` violate LSP on `errors` returning a `dict` and a...