Coverage for app/venv/lib/python3.14/site-packages/weblate/accounts/types.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 07:15 +0000

1# Copyright © Michal Čihař <michal@weblate.org> 

2# 

3# SPDX-License-Identifier: GPL-3.0-or-later 

4 

5from __future__ import annotations 

6 

7from typing import Literal 

8 

9from django.db.models import TextChoices 

10from django.utils.translation import pgettext_lazy 

11 

12 

13class ThemeChoices(TextChoices): 

14 AUTO = "auto", pgettext_lazy("Theme selection", "Sync with system") 

15 LIGHT = "light", pgettext_lazy("Theme selection", "Light") 

16 DARK = "dark", pgettext_lazy("Theme selection", "Dark") 

17 

18 

19DeviceType = Literal["totp", "webauthn", "recovery"]