abersheeran / a2wsgi

Convert WSGI app to ASGI app or ASGI app to WSGI app.
Apache License 2.0
226 stars 20 forks source link

Require typing_extensions on Python < 3.11 #57

Closed encukou closed 4 months ago

encukou commented 5 months ago

asgi_typing.py has:

if sys.version_info >= (3, 11):
    from typing import NotRequired
else:
    from typing_extensions import NotRequired

However, typing_extensions was not listed as a runtime requirement. If a2wsgi was installed without its test dependencies (which themselves require typing_extensions), it failed to import.

Fixes: #52