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:
parent
849b786e13
commit
f952d95951
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue