Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=Nonecreated_at=<Date2020-10-12.10:17:09.694>labels= ['type-feature', 'library']
title='typing support in wsgiref'updated_at=<Date2022-04-05.15:22:18.750>user='https://github.com/srittau'
I think it would be worthwhile to add these types directly to wsgiref or to a new module (e.g. wsgiref.types). On the one hand users could use them at runtime easily, on the other hand they serve as additional documentation WSGI types. In my experience, WSGI applications and middleware often slightly misimplement the standard, which can make interoperability difficult. Both type checking and concrete documentation could help alleviate this problem.
If the maintainers think this would be a good idea, I could provide a PR for both the types and the Python documentation.