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

Update CompiledRoute.resolve to return a dataclass, not a tuple #38

Open
Archmonger opened this issue Oct 18, 2024 · 0 comments
Open

Update CompiledRoute.resolve to return a dataclass, not a tuple #38

Archmonger opened this issue Oct 18, 2024 · 0 comments

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Oct 18, 2024

Current Situation

CompiledRoute.resolve currently returns a tuple, but we should rewrite it in a more robust way.

Proposed Actions

Utilize a dataclass instead of a tuple. This could potentially be named MatchedRoute.

This dataclass should contain the following attributes: element, parameters, path.

Related issue: #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant