Skip to content

Commit f6423fa

Browse files
mokagiocodex
andcommitted
Fix AbstractPusTm compatibility regression
Allow `AbstractPusTm` subclasses that implement either `subservice` (PUS A) or `message_subtype` (PUS C). This restores PUS A TM instantiation while keeping the PUS C rename and alias migration path. --- Generated with the help of Codex (GPT-5) Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent f3a8155 commit f6423fa

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • src/spacepackets/ecss

src/spacepackets/ecss/tm.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,10 @@ def timestamp(self) -> bytes:
7979
pass
8080

8181
@property
82-
@abstractmethod
8382
def message_subtype(self) -> int:
84-
pass
83+
return self.subservice
8584

8685
@property
87-
@deprecation.deprecated(
88-
deprecated_in=DEPRECATED_IN_SUBSERVICE_ALIAS,
89-
details="use message_subtype property instead",
90-
current_version=get_version(),
91-
)
9286
def subservice(self) -> int:
9387
return self.message_subtype
9488

0 commit comments

Comments
 (0)