From f952d959514d705676d084e1ccfbfe038e146ece Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 15 Oct 2024 02:17:23 +0200 Subject: [PATCH] Make `value` a positional-only argument in `gf2()` Most of Python's built-in data types behave like this as well --- src/lalib/elements/galois.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lalib/elements/galois.py b/src/lalib/elements/galois.py index e2651b2..11e44c6 100644 --- a/src/lalib/elements/galois.py +++ b/src/lalib/elements/galois.py @@ -48,6 +48,7 @@ from lalib import config def _to_gf2( value: complex, # `mypy` reads `complex | float | int` + /, *, strict: bool = True, threshold: float = config.THRESHOLD, @@ -160,6 +161,7 @@ class GF2Element(metaclass=GF2Meta): def __init__( self, value: object = None, + /, *, strict: bool = True, threshold: float = config.THRESHOLD,