Petter Friberg
Petter Friberg
> [...] some dataclasses then we can later look into populating that state from reading the source rather than doing it at runtime. [...] We might perhaps want to keep...
Interestingly enough the test that is added doesn't fail locally...
> Interestingly enough the test that is added doesn't fail locally... I really can't figure out how to reproduce locally.. @sobolevn would you mind checking out and try it, whenever...
There's 2 options here, I think 1. Declare an `objects` manager on your abstract class 2. Use `._default_manager` instead of `objects`. See #1684
I contributed a PR a little while back that should enable support for running mypy plugins with `mypy_primer`: https://github.com/hauntsaninja/mypy_primer/pull/121 It hasn't been merged yet, but if we want to we...
> It can work because of `get_dynamic_class_hook()`, but I am not sure this will be accepted as a type. > > Ok, we can try to populate `_USER_AUTH_MODEL` magic thing...
Yeah a separate PR would be best
I don't think that works. Isn't it only TypeAlias that can be annotated with? And that function call can't return a type alias, I've tried make the plugin spoof that...
Mypy makes `User` a variable(`Var`) and that can't be annotated with
> But can't we change that using `get_dynamic_class_hook`? Probably, I've tried that in #1699 but it isn't trivial