3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-08-18 02:51:23 +00:00

meta/lua-stubs: overwrite scale to accept float and int (#14461)

This commit is contained in:
Vaxry
2026-05-12 13:24:15 +01:00
committed by Vaxry
parent 6a3a8dc1e1
commit bad6466485

View File

@ -317,8 +317,9 @@ def parse_descriptor_fields(root: Path) -> dict[str, dict[str, str]]:
for name, ctor, _ in entry_regex.findall(body):
out[class_name][name] = lua_type_from_config_ctor(ctor)
# required / conventional fields not included in descriptor arrays
# required / conventional fields not included / special in descriptor arrays
out["HL.MonitorSpec"]["output"] = "string"
out["HL.MonitorSpec"]["scale"] = "string|number"
out["HL.DeviceSpec"]["name"] = "string"
out["HL.WorkspaceRuleSpec"]["workspace"] = "string"
out["HL.WorkspaceRuleSpec"]["enabled"] = "boolean"