-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
GitHub.get_organization wrong signature hint due to misnamed variable #3186
Copy link
Copy link
Closed
Description
I use signature hint and thus see the vars for each function i use and the login var was pretty confusing on this function given it needs the name of the org.
Lines 426 to 433 in d90323f
| def get_organization(self, login: str) -> Organization: | |
| """ | |
| :calls: `GET /orgs/{org} <https://docs.github.com/en/rest/reference/orgs>`_ | |
| """ | |
| assert isinstance(login, str), login | |
| login = urllib.parse.quote(login) | |
| headers, data = self.__requester.requestJsonAndCheck("GET", f"/orgs/{login}") | |
| return github.Organization.Organization(self.__requester, headers, data, completed=True) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels