Skip to content

Commit

Permalink
fixup: move docstring before assert
Browse files Browse the repository at this point in the history
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
  • Loading branch information
cskiraly committed Jun 27, 2024
1 parent 1ad381d commit 195ec21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/_features/eip7594/das-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 195ec21

Please sign in to comment.