mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 21:32:14 +08:00
Platforms: less redundant string repr (#32233)
smol old-commit-hash: 3d0f9fb18f52ce092a2eb00cb92f7c285bc56e89
This commit is contained in:
@@ -266,6 +266,9 @@ class Platforms(str, ReprEnum, metaclass=PlatformsType):
|
||||
member._value_ = platform_config.platform_str
|
||||
return member
|
||||
|
||||
def __repr__(self):
|
||||
return f"<{self.__class__.__name__}.{self.name}>"
|
||||
|
||||
@classmethod
|
||||
def create_dbc_map(cls) -> dict[str, DbcDict]:
|
||||
return {p: p.config.dbc_dict for p in cls}
|
||||
|
||||
Reference in New Issue
Block a user