Skip to content
Discussion options

Josverl
Nov 11, 2025
Collaborator Sponsor

You must be logged in to vote

It doesn't like this part:

https://gist.github.com/Josverl/505bcfb547f321d4e5c8b15c9cf4472c#file-modbuiltins-c-L49-L54

#if MICROPY_METACLASS || MICROPY_INIT_SUBCLASS
// Keyword arguments may include 'metaclass'
static mp_obj_t mp_builtin___build_class__(size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) {
#else
static mp_obj_t mp_builtin___build_class__(size_t n_args, const mp_obj_t *args) {
#endif

Specifically, what it doesn't like is that two indenting rules clash: It tries to keep the #if, #else and #endif on the same indentation level. But at the same time, the #else and #endif are inside the block and should have the same indentation as the rest of the block.

The way to write it…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Josverl
Comment options

Josverl Nov 11, 2025
Collaborator Author Sponsor

Answer selected by Josverl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Relates to tools/ directory in source, or other tooling
2 participants