Merge pull request 'ruff-5-docstring-fixes' (#4938) from ruff-5-docstring-fixes into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4938
This commit is contained in:
Mic92
2025-08-25 14:03:43 +00:00
4 changed files with 5 additions and 6 deletions

View File

@@ -27,7 +27,8 @@ def graphics_options(vm: VmConfig) -> GraphicOptions:
if vm.waypipe.enable:
# FIXME: check for collisions
cid = secrets.randbelow(2**32 - 1) + 1 # Generate random CID between 1 and 2^32
# Generate random CID in [3, 2^32-1] (0,1,2 are reserved)
cid = secrets.randbelow(2**32 - 3) + 3
# fmt: off
return GraphicOptions([
*common,

View File

@@ -127,7 +127,7 @@ def extract_frontmatter[T](
Raises
------
ValueError
ClanError
If the README does not contain valid frontmatter.
"""