Make value a positional-only argument in gf2()

Most of Python's built-in data types behave like this as well
This commit is contained in:
Alexander Hess 2024-10-15 02:17:23 +02:00
parent 849b786e13
commit f952d95951
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -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,