numbers is a list containing return value of the MigrationAutodetector.parse_number method called with an argument migration.name,
numbers = [ MigrationAutodetector . parse_number ( migration . name ) for migration in merge_migrations ]