Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Convert user_get_threepids response to attrs. #16468

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Conversation

clokep
Copy link
Member

@clokep clokep commented Oct 11, 2023

This is related to #16431, but mostly just improves our type hints.

@clokep clokep marked this pull request as ready for review October 11, 2023 19:46
@clokep clokep requested a review from a team as a code owner October 11, 2023 19:46
)
return [ThreepidResult(**r) for r in results]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that simple_select_list is still calling cursor_to_dict?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is to reduce the diff in the branch.

Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming that simple_select_list hasn't yet been de-dictionaried. I double checked the DB column types too.

@clokep clokep merged commit cc865ff into develop Oct 12, 2023
34 of 38 checks passed
@clokep clokep deleted the clokep/axe-dicts branch October 12, 2023 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants