Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove partial field accessors from AuthenticationError #192

Closed
wants to merge 1 commit into from
Closed

Remove partial field accessors from AuthenticationError #192

wants to merge 1 commit into from

Conversation

intricate
Copy link
Contributor

These field accessors for AuthenticationError are partial functions that probably aren't necessary to keep around.

Similar partial field accessors also appear in other types, e.g. RegistrationError, UncheckedPublicKey.

I'd be willing to go through the project and address all of them, but I first wanted to make sure that you guys would be open to the changes.

@sjoerdvisscher
Copy link
Member

This makes a lot of sense to me. The only reason I can think of to have the field accessors is if they match up with property names from the specification. (And even then it is questionable to have them.) But as far as I can tell this is not the case here. I'd be happy to accept a patch with all the partial accessors removed!

@intricate
Copy link
Contributor Author

Thanks for the response @sjoerdvisscher!

Closing this PR as it's subsumed by #193.

@intricate intricate closed this Sep 27, 2024
@intricate intricate deleted the partial-field-accessors-AuthenticationError branch September 27, 2024 21:17
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.

2 participants