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

Refine typing #3

Closed
wants to merge 2 commits into from
Closed

Refine typing #3

wants to merge 2 commits into from

Conversation

bswck
Copy link

@bswck bswck commented Feb 17, 2024

I am quite unsure why ContextHook.<ContextHook.__init__>.self was annotated as jinja2.ext.Extension; it exposes interface matching jinja2.ext.Extension as its subclass.

The proposed PR makes mypy src --strict pass with cwd being the root repo directory.

@bswck
Copy link
Author

bswck commented Feb 17, 2024

Interesting. Quality checks fail due to non-strict settings. Mind if I change mypy to run in the strict mode in config/mypy.ini? It will likely imply some more changes outside src/.

@pawamoy
Copy link
Collaborator

pawamoy commented Feb 17, 2024

Sure, better typing is always welcome! Thanks a lot!

@bswck bswck closed this by deleting the head repository Oct 18, 2024
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