pmb.helpers.locale: Mark XkbLayout.primary_locales as Final

This removes any ambiguity about whether this is a class or instance
variable, which Mypyc requires.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2634
This commit is contained in:
Newbyte 2025-07-01 12:51:38 +02:00 committed by Oliver Smith
parent 0ade6cab4d
commit ba56809dc3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -3,6 +3,8 @@
from pmb.helpers import logging from pmb.helpers import logging
from typing import Final
""" """
Helper used to configure locale-related settings in pmOS installation. Helper used to configure locale-related settings in pmOS installation.
@ -14,7 +16,7 @@ Locale and layout information is taken from:
class XkbLayout: class XkbLayout:
primary_layouts = frozenset( primary_layouts: Final[frozenset[str]] = frozenset(
[ [
"at", "at",
"au", "au",