Samuel Colvin

Results 325 issues of Samuel Colvin

dataclass validation should get **MASSIVELY** easier and more performant since we have the `arguments` validator in pydantic-core which means we can do validation before constructing the dataclass. Lots of examples...

feature request
help wanted

### First check Yes to all (great list of checks btw, I might copy them to pydantic 👍 ) ### Thank you @tiangolo FastAPI is great. This is the first...

feature
investigate
reviewed

## What is this Python project? Describe features. ## What's the difference between this Python project and similar ones? Pydantic: * uses type hints to define validation schema, so static...

Error is: ``` await self.write_items(prepared) File "/usr/local/lib/python3.11/site-packages/asynch/proto/columns/stringcolumn.py", line 13, in write_items await self.writer.write_strings(items) File "/usr/local/lib/python3.11/site-packages/asynch/proto/streams/buffered.py", line 49, in write_strings await self.write_varint(len(packet)) ^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len()...

## Long story short processing a request using ```py reader = await request.multipart() foobar = await reader.next() ... ``` Should raise `HTTPRequestEntityTooLarge` if the request size exceeds `client_max_size`, currently I...

enhancement

From aio-libs/aiohttp-jinja2#163 > I think sub app routes should be available via `subapp:view-name`, which would require a `route_name` argument to `add_subapp`. This would roughly mirror django routing and would make...

enhancement

No longer needed as GitHub dependencies supports pyproject.toml

Continued from conversation on long-dead #1607. I've still seeing a significant overhead when calling ```rs #[pyfunction] pub fn slow_len(obj: &Bound *mut ffi::PyObject { if nargs != 1 { ffi::PyErr_SetString(ffi::PyExc_TypeError, "expected...

The following ```rs fn main() { let json = vec![b'"', 128, b' ', b' ', b' ', b'"']; let e = serde_json::from_slice::(&json).unwrap_err(); println!("serde_json error: {e}"); let e = std::str::from_utf8(&json).unwrap_err(); println!("from_utf...

Given the following example: ```rust fn main() { let json_vec = vec![34, 92, 34, 206, 44, 163, 34]; let error = serde_json::from_slice::(&json_vec).unwrap_err(); dbg!(error.to_string()); } ``` Serde JSON gives the error...