Samuel Colvin

Results 326 issues of Samuel Colvin

micropip doesn't install some required transitive dependencies. (related to #201) This is my current workaround for adding extra required transitive dependencies, maybe it's helpful in working out what's wrong? ```py...

To use the [method](https://github.com/pydantic/pydantic-core/blob/cd0346d68bf7c15dcd73b56d5084d094b0dea351/python/pydantic_core/_pydantic_core.pyi#L124C5-L124C19) in `pydantic-core`. Current workaround is to use `a.validator.isinstance_python`, like ```py from pydantic import TypeAdapter ta = TypeAdapter(tuple[int, int]) print(ta.validator.isinstance_python((123, 456))) ```

feature request

### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description Run the code below with: ```bash # with pydantic 2.9.2 uv run --with devtools --with 'pydantic==2.9.2'...

bug V2

```py import jiter v = jiter.from_json(b'[{"a": "foo", "b": 1}, {"a": "bar": 2}, {"a": "baz", "b": 3}]', partial_mode='trailing-strings') print(v) ``` This passes and prints `[{'a': 'foo', 'b': 1}, {'a': 'bar'}]`, it...

As per https://github.com/pydantic/jiter/pull/157#discussion_r1823449375

As well as allowing a custom httpx client, this also improves type safety in `Client` and `AsyncClient` - previously `self._client` implicitly had type of `None`.

### Description Noticed while creating #947: ![Image](https://github.com/user-attachments/assets/0a96f07e-4691-4df1-92f1-03264fba2d44) These requests are all to http://localhost:3001 ### Python, Logfire & OS Versions, related packages (not required) ```TOML logfire="3.9.0" platform="macOS-15.3.2-arm64-arm-64bit" python="3.12.7 (main, Oct 16...

I found this useful, perhaps we should add it to `capfire`? ```py class TraceSummary(TypedDict): id: int message: str children: NotRequired[list[TraceSummary]] @dataclass(init=False) class LogfireSummary: traces: list[TraceSummary] attributes: dict[int, dict[str, Any]] def...

P3

Having the `_internal` sub-package is great as it provides a boundary to not include in the `logfire-api` package. We should remove it, it would also make the `logfire-api` package lighter.

### Description If I run uvicorn normally (e.g. `uv run uvicorn app:app`), I see two logs, one from logfire and one from uvicorn ``` 16:11:29.487 GET / INFO: 172.17.0.1:59302 -...