Skip to content

Commit

Permalink
Require keyword args in models (#163)
Browse files Browse the repository at this point in the history
* require kwargs for all models

* make tests use kwargs

* use the keyword args in the docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
wd60622 and pre-commit-ci[bot] authored Oct 27, 2024
1 parent 20bae00 commit 28ee514
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 33 deletions.
24 changes: 8 additions & 16 deletions conjugate/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@


class NUMERIC(Protocol):
def __add__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __add__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __radd__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __radd__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __sub__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __sub__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __rsub__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __rsub__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __mul__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __mul__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __rmul__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __rmul__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __truediv__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __truediv__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover

def __rtruediv__(self, other: "NUMERIC") -> "NUMERIC":
... # pragma: no cover
def __rtruediv__(self, other: "NUMERIC") -> "NUMERIC": ... # pragma: no cover
Loading

0 comments on commit 28ee514

Please sign in to comment.