def __init__(self, main_type, sub_type, params=None):
        """
        Initializes a new instance of MimeType.
        :param str main_type: The first part of the mimetype before the slash.
        :param str sub_type: The second part of the mimetype after the slash.
        :param dict params: The parameters of the mimetype.
        """
        self.main_type = main_type
        self.sub_type = sub_type
        self.params = params
def __init__ ( self , main_type , sub_type , params = None ) : self . main_type = main_type self . sub_type = sub_type self . params = params
Initializes a new instance of MimeType.
        :param str main_type: The first part of the mimetype before the slash.
        :param str sub_type: The second part of the mimetype after the slash.
        :param dict params: The parameters of the mimetype.