What is this AddCards API change for?

I found an api change from this commit. It changed AddCards.setupChoosers to AddCards.setup_choosers. This seems a mistake to me, cause it break the camelcase naming like other APIs like AddCards.setupEditor, AddCards.setupButtons.
I’d like to known what this change for. Thank you very much.

The Python convention is to use snake_case for methods, and Anki is moving towards that, but not all names have been changed yet. Maybe setupEditor was kept here to avoid breaking add-ons that use it.

3 Likes