Platforms: less redundant string repr (#32233)

smol
old-commit-hash: 3d0f9fb18f52ce092a2eb00cb92f7c285bc56e89
This commit is contained in:
Shane Smiskol
2024-04-16 23:37:46 -07:00
committed by GitHub
parent 2fa5b234b7
commit 43c72d410d
+3
View File
@@ -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}