Petter Friberg
Petter Friberg
Could it be feasible to introduce a `Locale` phantom type? Perhaps more narrowly a "http locale" type, following the rules of the `Accept-Language` header specification (https://httpwg.org/specs/rfc7231.html#header.accept-language). I don't mean that...
Allows for intercepting a propagated exception and either reraise or raise a different error. All while allowing type checkers to follow on that. This allows for registering something like below,...
**Describe the bug** Any decorator added to an operation isn't run. Consider below, where I'd like my `hello_world` operation to respond with a set cookie header including a `csrftoken` cookie....
**Bug Report** Custom implemented `__iter__` method on class mismatches when passing positional arguments with asterisk(`*`) **To Reproduce** ```python from typing import Iterator class X: def __iter__(self) -> Iterator[str]: return iter([""])...
The workflow automates pushing new `django-stubs` versions to PyPI triggered from GitHub releases. It does _not_ release `django-stubs-ext`. The workflow requires trusted publishing to be set up in PyPI. I'm...
PyPi quite recently introduced "Trusted publishing" (PyPi's term for [OpenID Connect - OIDC](https://openid.net/connect/) standard), which can be used to add a GitHub Actions workflow as trusted publisher in PyPi. That...
e.g. overriding client for an ASGI request requires a list Here's the runtime reference for the available ASGI scope: https://github.com/django/django/blob/617bcf611f3daa796e4054ba041089ece30a32fc/django/test/client.py#L640-L662
# I have made things! I got an idea from reading https://github.com/typeddjango/django-stubs/issues/1337#issuecomment-1401668445, that it'd be possible and also preferable to avoid triggering `AppConfig.ready` for `INSTALLED_APPS`. For multiple reasons: - It'll...
Attempts to resolve the provided lazy reference to a model type. As such it can now return a specific model depending on what it was called with ## Related issues...
# I have made things! The changes here allows creation of managers looking like below ```python class MyQuerySet(models.QuerySet["MyModel"]): ... MyManager = models.Manager.from_queryset(MyQuerySet) class MyOtherManager(MyManager): ... ``` I'll be honest here...