Skip to content

Conversation

@crepererum
Copy link
Collaborator

Turns out #[derive(IntoPyObject)] for structs just creates a dict, which is not what we want. For the happy path that we tested so far, this doesn't make a difference, but in #112 I'm gonna test the error case (e.g. for rejected/blocked requests) and there the Python error interface actually matters. In fact without this change, urllib3 trips over this with AttributeError: 'dict' object has no attribute 'value'. Did you mean: 'values'?.

@crepererum crepererum requested a review from Sl1mb0 October 21, 2025 14:28
Turns out `#[derive(IntoPyObject)]` for structs just creates a `dict`,
which is not what we want.
@crepererum crepererum force-pushed the crepererum/err-wrapper-no-dict branch from b81df16 to c464190 Compare October 22, 2025 09:59
@crepererum crepererum mentioned this pull request Oct 22, 2025
3 tasks
@crepererum crepererum added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit 5945834 Oct 23, 2025
2 checks passed
@crepererum crepererum deleted the crepererum/err-wrapper-no-dict branch October 23, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants