github
3 of 515 new or added lines in 7 files covered. (0.58%)
6483 of 6995 relevant lines covered (92.68%)
9.06 hits per line
NEW
|
from dataclasses import dataclass |
× |
NEW
|
from typing import Union |
× |
3 |
|
|
4 |
|
|
NEW
|
class Annotation: |
× |
NEW
|
pass
|
× |
7 |
|
|
8 |
|
|
NEW
|
class Constraint(Annotation): |
× |
NEW
|
pass
|
× |
11 |
|
|
12 |
|
|
NEW
|
@dataclass(unsafe_hash=True) |
× |
NEW
|
class Minimum(Constraint): |
× |
NEW
|
value: Union[int, float] |
× |
16 |
|
|
17 |
|
|
NEW
|
@dataclass(unsafe_hash=True) |
× |
NEW
|
class ExclusiveMinimum(Constraint): |
× |
NEW
|
value: Union[int, float] |
× |
21 |
|
|
22 |
|
|
NEW
|
@dataclass(unsafe_hash=True) |
× |
NEW
|
class Maximum(Constraint): |
× |
NEW
|
value: Union[int, float] |
× |
26 |
|
|
27 |
|
|
NEW
|
@dataclass(unsafe_hash=True) |
× |
NEW
|
class ExclusiveMaximum(Constraint): |
× |
NEW
|
value: Union[int, float] |
× |