From dda535b3600fc3385df996da47afdecb3b3df0ef Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 21 May 2024 20:48:14 +0200 Subject: Add some more missing docs. --- pyecsca/sca/target/ectester.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pyecsca/sca/target/ectester.py') diff --git a/pyecsca/sca/target/ectester.py b/pyecsca/sca/target/ectester.py index 394d86f..512f51c 100644 --- a/pyecsca/sca/target/ectester.py +++ b/pyecsca/sca/target/ectester.py @@ -17,6 +17,8 @@ from ...ec.point import Point class ShiftableFlag(IntFlag): # pragma: no cover + """An `IntFlag` that can be shifted.""" + def __lshift__(self, other): val = int(self) << other for e in self.__class__: @@ -92,6 +94,7 @@ class ExportEnum(IntEnum): # pragma: no cover @classmethod def from_bool(cls, val: bool): + """Construct an `ExportEnum` from a boolean.""" return cls.EXPORT_TRUE if val else cls.EXPORT_FALSE -- cgit v1.2.3-70-g09d2