[Python] How is value initialized in this line of Python ocde?

Discussão em 'Python' iniciado por Stack, Julho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to refactor some code(for deploying on a new infrastructure).

    Quite a big class

    class GithubOrganization(dict):
    def __init(self,organization_dict,rest_session):
    self.rest_session=rest_session
    super(GithubOrganization,self)__init(self,organization_dict)


    and this is the line of the code that I do not understand

    self.github_organization:GithubOrganization=self.github_session.organizations.get_org(self.login)


    where login and github_session were initialized before. what does

    self.github_organization:GithubOrganization


    serve for?

    Continue reading...

Compartilhe esta Página