sprockets / sprockets.mixins.mediatype

Handles Content-Type & Accept header serialization and deserialization for you
https://sprocketsmixinsmedia-type.readthedocs.io
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Add type annotations #41

Closed dave-shawley closed 3 years ago

dave-shawley commented 3 years ago

This PR adds type annotations throughout and fixes a defect exposed when I added them. I also deprecated running without a default content type set which is what caused the underlying error and improved log messages to make misconfigurations easier to diagnose.

Resolves: #33

cknave commented 3 years ago

I had a couple of questions @dave-shawley, but this looks good to me