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

Add type hints for settings module #3267

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Dec 17, 2023

Types make it easier to understand the code and improve autocompletion in IDEs.

Pull Request Checklist

  • Ensured tests pass and (if applicable) updated functional test output
  • Conformed to code style guidelines by running appropriate linting tools

While reading pelican's code I just added some type hints. If accepted I can upload more PRs for additional type hint.

pelican/settings.py Outdated Show resolved Hide resolved
Types make it easier to understand the code and improve autocompletion
in IDEs.
@bjoernricks
Copy link
Contributor Author

@avaris could you approve the workflow to be run. I guess that's missing for merging the PR.

Copy link
Member

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

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

Many thanks to @bjoernricks for the enhancement and to @avaris for reviewing ✨

@justinmayer justinmayer merged commit def0899 into getpelican:master Jan 17, 2024
15 checks passed
@bjoernricks bjoernricks deleted the setting-types branch January 18, 2024 07:46
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.

3 participants