Skip to content

GitHub.get_organization wrong signature hint due to misnamed variable #3186

@blyedev

Description

@blyedev

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.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions