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

NF: Add keyword_only decorator to enforce keyword-only arguments #887

Closed
wants to merge 1 commit into from

Conversation

WassCodeur
Copy link
Member

Description:

Added @keyword_only decorator to enforce keyword-only arguments in project functions.

Modification details:

  • Creation of the @keyword_only decorator to ensure that functions can only be called with arguments specified solely by keyword.
  • Full documentation of the new decorator, including usage examples and explanations of how it works.
  • Added unit tests to ensure proper operation of the new decorator.

This contribution represents the first step towards applying the @keyword_only decorator to the appropriate functions in the project. Current modifications include the creation of the decorator, associated documentation and unit tests. The next step will be to identify and apply the decorator to relevant functions throughout the project.

@pep8speaks
Copy link

Hello @WassCodeur, thank you for submitting the Pull Request!

Line 109:80: E501 line too long (83 > 79 characters)

To test for issues locally, pip install flake8 and then run flake8 fury.

@WassCodeur WassCodeur closed this May 21, 2024
@WassCodeur WassCodeur deleted the keyword_only branch May 21, 2024 14:19
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