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:
@@ -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,
|
||||
|
||||
@@ -127,7 +127,7 @@ def extract_frontmatter[T](
|
||||
|
||||
Raises
|
||||
------
|
||||
ValueError
|
||||
ClanError
|
||||
If the README does not contain valid frontmatter.
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user