From da69a4bad15b6e66d4adf065c70ee4e4228d3266 Mon Sep 17 00:00:00 2001 From: Jann Stute Date: Mon, 11 May 2026 19:22:12 +0200 Subject: [PATCH] doc: add REUSE comment header for singleton.py Comparing our implementation with the one it is based on, they really don't have much more in common than the general idea of the implementation, which afaik can't be copyrighted. --- src/tagstudio/core/utils/singleton.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tagstudio/core/utils/singleton.py b/src/tagstudio/core/utils/singleton.py index 76b6bf08..82b4518d 100644 --- a/src/tagstudio/core/utils/singleton.py +++ b/src/tagstudio/core/utils/singleton.py @@ -1,10 +1,11 @@ -# Based off example from Refactoring Guru: -# https://refactoring.guru/design-patterns/singleton/python/example#example-1 -# Adapted for TagStudio: https://github.com/CyanVoxel/TagStudio +# SPDX-FileCopyrightText: (c) TagStudio Contributors +# SPDX-License-Identifier: GPL-3.0-only + from threading import Lock +# See also: https://refactoring.guru/design-patterns/singleton/python/example#example-1 class Singleton(type): """A thread-safe implementation of a Singleton."""