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

Release 1.59.0 #2563

Merged
merged 4 commits into from Jun 22, 2023
Merged

Release 1.59.0 #2563

merged 4 commits into from Jun 22, 2023

Conversation

EnricoMi
Copy link
Collaborator

No description provided.

def __init__(
self,
integration_id=None,
private_key=None,
base_url=Consts.DEFAULT_BASE_URL,
*,
timeout=Consts.DEFAULT_TIMEOUT,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this, existing code like GithubIntegration(id, key, url, expiry) would silently use expiry as timeout. This breaks code that uses jwt_* arguments as positional arguments.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I actually don't know what this syntax means. Could you point to a doc that explains it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Arguments after the bare * are keyword arguments only, they cannot be provided as positional arguments:

Parameters after “*” or “*identifier” are keyword-only parameters and may only be passed used keyword arguments.

https://docs.python.org/3.5/reference/compound_stmts.html#function-definitions
https://stackoverflow.com/questions/2965271/how-can-we-force-naming-of-parameters-when-calling-a-function/14298976#14298976

@EnricoMi EnricoMi marked this pull request as ready for review June 22, 2023 14:18
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@ff3b80f). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2563   +/-   ##
=======================================
  Coverage        ?   98.35%           
=======================================
  Files           ?      131           
  Lines           ?    13161           
  Branches        ?        0           
=======================================
  Hits            ?    12945           
  Misses          ?      216           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@JLLeitschuh JLLeitschuh left a comment

Choose a reason for hiding this comment

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

In general looks fine, but you're using python syntax that I'm unfamiliar with

@EnricoMi EnricoMi merged commit 14ae2ca into PyGithub:main Jun 22, 2023
10 checks passed
@EnricoMi EnricoMi deleted the release-1.59.0 branch June 22, 2023 17:41
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

3 participants