Skip to content

Add defaults for params and constants in pyinstaller #9640

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

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jan 31, 2023

  1. Ran https://github.com/JelleZijlstra/stubdefaulter
  2. Manually added default kwarg parameters
  3. Manually added defaults and Final for constants

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

DEFAULT_DISTPATH: str
DEFAULT_WORKPATH: str
PLATFORM: LiteralString
__version__: Final[str]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Given the special meaning of __version__, I feel like it should always be considered constant/final. Maybe a project-wide search&replace for ^__version__: str$ --> __version__: Final[str] could have value?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, sounds good

@Avasam Avasam changed the title Add defaults params and constants in pyinstaller Add defaults for params and constants in pyinstaller Jan 31, 2023
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