You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is because a2wsgi uses TypedDict while starlette uses MutableMapping, which are not compatible. I'm not sure what the solution would be, maybe this is something I should raise at starlette, but it seems like one could in principle add arbitrary keys which would make TypedDict the wrong choice ?
The text was updated successfully, but these errors were encountered:
mvdbeek
added a commit
to galaxybot/galaxy
that referenced
this issue
Jan 1, 2024
It's neither Starlette nor a2wsgi's problem, it's because Python currently doesn't handle extra keyword arguments gracefully. You can use type: ignore to work around it. The reason a2wsgi has detailed type annotations is that a2wsgi is supposed to work between frameworks that conform to those specifications. Detailed type annotations help to check for compatibility issues. As for web frameworks, they may prefer the looser MutableMapping since users tend to pass many non-spec keys and values.
Hey there, we're using a2wsgi and it helped us a lot, but with starlette 0.34.0 we've started seeing
I believe this is because a2wsgi uses
TypedDict
while starlette uses MutableMapping, which are not compatible. I'm not sure what the solution would be, maybe this is something I should raise at starlette, but it seems like one could in principle add arbitrary keys which would makeTypedDict
the wrong choice ?The text was updated successfully, but these errors were encountered: