async def on_licenses(self, licenses: list[CMsgClientLicenseListLicense]):
    self._licenses = {}
    for steam_license in licenses:
        self.licenses[steam_license.package_id] = steam_license
async def on_licenses(self, licenses: list[CMsgClientLicenseListLicense]):
    self._licenses = {}
    for steam_license in licenses:
        self.licenses[steam_license.package_id] = steam_license