mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-12 19:09:56 +03:00
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:
parent
0ade6cab4d
commit
ba56809dc3
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
from pmb.helpers import logging
|
||||
|
||||
from typing import Final
|
||||
|
||||
"""
|
||||
Helper used to configure locale-related settings in pmOS installation.
|
||||
|
||||
|
@ -14,7 +16,7 @@ Locale and layout information is taken from:
|
|||
|
||||
|
||||
class XkbLayout:
|
||||
primary_layouts = frozenset(
|
||||
primary_layouts: Final[frozenset[str]] = frozenset(
|
||||
[
|
||||
"at",
|
||||
"au",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue