The module_builder.module_builder_t.register_module_dependency(<path>) method call doesn't always suppress the W1040 warning for an exposed class listed in <path>/exposed_decl.pypp.txt.
The problem appears to be that successive calls of the module_builder.module_builder_t.register_module_dependency method aren't additive; only W1040 warnings for the declarations listed in the last exposed_decl.pypp.txt file are suppressed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem appears to be that successive calls of the module_builder.module_builder_t.register_module_dependency method aren't additive; only W1040 warnings for the declarations listed in the last exposed_decl.pypp.txt file are suppressed.