Skip to content

Commit f1afc98

Browse files
author
Lukas Puehringer
committed
lint: change base tuple order in SimpleEnvelope
Latest ruff complains about Generic[T] not being the last base class in the bases tuple of Simple Envelope (generic-not-last-base-class (PYI059)). This commit applies the default fix by changing the order of the bases. While this can change the MRO, there shouldn't be a change of behavior given the used bases. See https://docs.astral.sh/ruff/rules/generic-not-last-base-class/ for details. Signed-off-by: Lukas Puehringer <[email protected]>
1 parent 06cd6bb commit f1afc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuf/api/dsse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from tuf.api.serialization import DeserializationError, SerializationError
3535

3636

37-
class SimpleEnvelope(Generic[T], BaseSimpleEnvelope):
37+
class SimpleEnvelope(BaseSimpleEnvelope, Generic[T]):
3838
"""Dead Simple Signing Envelope (DSSE) for TUF payloads.
3939
4040
* Sign with ``self.sign()`` (inherited).

0 commit comments

Comments
 (0)