Petter Friberg
Petter Friberg
Additionally I just want to point out that the _real_ solution here is to have the plugin not add managers from the runtime model, but instead analyze the declared model(and...
> was removing `objects` solving something specific? [...] Not more than an attempt of better alignment with the runtime.. We probably need to relax that deletion until analysis of models...
Would it be possible to `@overload` on `__new__`? To capture returning a `ListSerializer`? As mypy should consider `__new__`s return type nowadays
Right, I suppose the simplest way to get types right is to just call `.many_init(...)` directly instead of passing `many=True` via `__new__`
FWIW below is a port of the `TZAware` type I did, that worked with Pydantic v2 (2.7.0) ```python from typing import Any from phantom.datetime import TZAware as PhantomTZAware from pydantic...
I just wanted to mention on this issue that I think I did figure out an approach to make `mypy_primer` support plugin dependencies in #121
Thanks for the review, I'm gonna try to move back to using project specific venvs, see if I can get it to work. The global env was added to have...
I've updated to align with your suggestions. Let me know if there's anything else I've missed or should update. Though I can't say I follow why each project needs its...
To clarify I meant a minimal case looking along the lines of: ```python import httpx import pytest import respx @pytest.fixture(scope="session", autouse=True) def _disable_external_httpx_calls(): with respx.mock: yield None def test_first(): respx.route(host="localhost").pass_through()...
I managed to figure out that since it's a global object involved I can create a fixture that wraps the pass through in a snapshot that'll get rolled back. It...