perf: 优化自定义类型的冲突

pull/10303/head
ibuler 2023-04-21 15:12:05 +08:00 committed by Jiangjie.Bai
parent f85daa088f
commit a6ab886968
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class CustomTypes(BaseType):
platforms = list(cls.get_custom_platforms())
except Exception:
return []
types = [p.type for p in platforms]
types = set([p.type for p in platforms])
return [(t, t) for t in types]
@classmethod