From 53ef22d6b879d7b1cac926d28dabf9a6f23dfe14 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Tue, 21 Mar 2023 20:52:54 +0100 Subject: [PATCH] distro/repo.py: fix accidental global variable --- distro/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro/repo.py b/distro/repo.py index ac3dbb0..b63c293 100644 --- a/distro/repo.py +++ b/distro/repo.py @@ -20,12 +20,12 @@ def resolve_url(url_template, repo_name: str, arch: str): class RepoInfo: - options: dict[str, str] = {} + options: dict[str, str] url_template: str def __init__(self, url_template: str, options: dict[str, str] = {}): self.url_template = url_template - self.options.update(options) + self.options = {} | options class Repo(RepoInfo, Generic[BinaryPackageType]):