next-exp/IC

Gather symbols in a better way

Open

#835 创建于 2023年4月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (77 fork)auto 404
easyhelp wanted

仓库指标

Star
 (10 star)
PR 合并指标
 (PR 指标待抓取)

描述

In #816 all IC symbols were gathered in the same file and collected into a dictionary. This dictionary is useful to make all the symbols available to the code that reads config files. However, the method used to collect them into the dictionary is not the best. As suggested here The main alternatives are:

  1. A class decorator that adds every variant of the decorated enum to the dictionary
  2. Metaclasses

1 is the most straightforward, but both options should be explored and compared to see which one fits best.

贡献者指南