From 195ec2163ab2d65996acbea147209b69dd84a610 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Thu, 27 Jun 2024 14:11:13 +0200 Subject: [PATCH] fixup: move docstring before assert Signed-off-by: Csaba Kiraly --- specs/_features/eip7594/das-core.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/_features/eip7594/das-core.md b/specs/_features/eip7594/das-core.md index 293e85ad72..58f0a47e56 100644 --- a/specs/_features/eip7594/das-core.md +++ b/specs/_features/eip7594/das-core.md @@ -228,7 +228,6 @@ def get_data_column_sidecars(signed_block: SignedBeaconBlock, ```python def get_extended_sample_count(allowed_failures: uint64) -> uint64: - assert 0 <= allowed_failures <= NUMBER_OF_COLUMNS // 2 """ Return the sample count if allowing failures. @@ -237,6 +236,7 @@ def get_extended_sample_count(allowed_failures: uint64) -> uint64: Nested functions are direct replacements of Python library functions math.comb and scipy.stats.hypergeom.cdf, with the same signatures. """ + assert 0 <= allowed_failures <= NUMBER_OF_COLUMNS // 2 def math_comb(n: int, k: int) -> int: if not 0 <= k <= n: