          ))
  
      def test_value_omitted_from_data(self):
          widget = MyMultiWidget(widgets=(TextInput(), TextInput()))
          self.assertIs(widget.value_omitted_from_data({}, {}, 'field'), True)
          self.assertIs(widget.value_omitted_from_data({'field_0': 'x'}, {}, 'field'), False)
 
</s>
    def test_constructor_attrs_with_type(self):
        attrs = {'type': 'number'}
        widget = MyMultiWidget(widgets=(TextInput, TextInput()), attrs=attrs)
        self.check_html(widget, 'code', ['1', '2'], html=(
            '<input type="number" value="1" name="code_0" />'
            '<input type="number" value="2" name="code_1" />'
        ))
        widget = MyMultiWidget(widgets=(TextInput(attrs), TextInput(attrs)), attrs={'class': 'bar'})
        self.check_html(widget, 'code', ['1', '2'], html=(
            '<input type="number" value="1" name="code_0" class="bar" />'
            '<input type="number" value="2" name="code_1" class="bar" />'
        ))

          ))
  
    def test_constructor_attrs_with_type(self):
        attrs = {'type': 'number'}
        widget = MyMultiWidget(widgets=(TextInput, TextInput()), attrs=attrs)
        self.check_html(widget, 'code', ['1', '2'], html=(
            '<input type="number" value="1" name="code_0" />'
            '<input type="number" value="2" name="code_1" />'
        ))
        widget = MyMultiWidget(widgets=(TextInput(attrs), TextInput(attrs)), attrs={'class': 'bar'})
        self.check_html(widget, 'code', ['1', '2'], html=(
            '<input type="number" value="1" name="code_0" class="bar" />'
            '<input type="number" value="2" name="code_1" class="bar" />'
        ))

      def test_value_omitted_from_data(self):
          widget = MyMultiWidget(widgets=(TextInput(), TextInput()))
          self.assertIs(widget.value_omitted_from_data({}, {}, 'field'), True)
          self.assertIs(widget.value_omitted_from_data({'field_0': 'x'}, {}, 'field'), False)
keep add keep keep keep keep
 Fixed #27723 -- Set MultiWidget's subwidgets input type from attrs argument.

Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
tests/forms_tests/widget_tests/test_multiwidget.py