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.

貢獻者指南