question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Use asgiref for typing

See original GitHub issue

Starlette’s ASGI types use MutableMapping[str, Any] which is not too different from just typing them dict. This package is fully spec compliant and would help in implementing additional ASGI functionality, as it would allow us to see exactly which keys are available/required to support a feature. There is currently a PR for Starlette that addresses this but it doesn’t seem like it would be merged soon.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Goldzihercommented, Sep 17, 2022

@relsunkaev - it took a while, but i made this change. Welcome to check it out.

1reaction
Goldzihercommented, Jun 28, 2022

i saw that kludex released a version of the typing as an independent package. would you like to implement this @relsunkaev ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asgi Websocket example not working on asgiref>=3.x #225
I'm guessing there has been some change to asgi since this was written, however I lack the experience to figure it out on...
Read more >
[Django] #32889: Use asgiref ThreadSensitiveContext to allow ...
Type : | Status: assigned. Cleanup/optimization | Component: HTTP | Version: 4.0 handling | Severity: Normal | Keywords: async, asgi
Read more >
32128 (Issue with asgiref dependency installing Django 3.1.x)
It looks like we've misspecified the asgiref dependency in Django 3.1.x. ... This is using the old resolver but the new one will...
Read more >
asgiref · PyPI
Implements the group extension, and is designed to support running multiple ASGI programs in separate threads within one process (the channel layer is ......
Read more >
ASGI Documentation
These events each have a defined type key, which can be used to infer the ... ASGI servers through a translation wrapper (provided...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found