tapioca
tapioca copied to clipboard
Automatically resolve superclass redefinition errors while generating gem RBIs
We already typecheck resulting RBIs to convert strictness to false: https://github.com/Shopify/tapioca/blob/ba2951e75fbea6bad8b4ea0641ea3df38eb9e60d/lib/tapioca/helpers/rbi_files_helper.rb#L86
Similarly if we run into a superclass redefinition error we can populate sorbet/config with --suppress-payload-superclass-redefinition-for=ConstantName to prevent typecheck errors.
We probably will want to update the payload as well so this should still inform the user about the mismatch that's happening instead of fixing it silently.