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

style: add type annotation #66

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

SaidBySolo
Copy link
Member

I tried to apply mypyc to sanic-routing as discussed here but failed.

This is because compiled classes cannot inherit.

Besides that, there are a lot of unstable parts, which I think should be approached with caution.

In the end, application of mypyc failed, but type annotation is applied better than expected, so it is expected that maintenance will be very easy for sanic-routing in the future.

Copy link
Member

@ahopkins ahopkins left a comment

Choose a reason for hiding this comment

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

Didn't finish review. Looks like you need to run black though.

sanic_routing/route.py Outdated Show resolved Hide resolved
sanic_routing/route.py Outdated Show resolved Hide resolved
sanic_routing/route.py Outdated Show resolved Hide resolved
sanic_routing/router.py Show resolved Hide resolved
sanic_routing/tree.py Outdated Show resolved Hide resolved
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.

None yet

2 participants