Coverage for /usr/lib/python3/dist-packages/sympy/polys/matrices/_typing.py: 100%
8 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-14 15:55 +0200
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-14 15:55 +0200
1from typing import TypeVar, Protocol
4T = TypeVar('T')
7class RingElement(Protocol):
8 def __add__(self: T, other: T, /) -> T: ...
9 def __sub__(self: T, other: T, /) -> T: ...
10 def __mul__(self: T, other: T, /) -> T: ...
11 def __pow__(self: T, other: int, /) -> T: ...
12 def __neg__(self: T, /) -> T: ...