import string from collections import OrderedDict from typing import Dict, Optional from .. import BaseProvider, ElementsType class Provider(BaseProvider): """Implement default file provider for Faker.""" application_mime_types: ElementsType = ( "application/atom+xml", # Atom feeds "application/ecmascript", # ECMAScript/JavaScript; Defined in RFC 4329 (equivalent to # application/javascript but with stricter processing rules) "application/EDI-X12", # EDI X12 data; Defined in RFC 1767 "application/EDIFACT", # EDI EDIFACT data; Defined in RFC 1767 "application/json", # JavaScript Object Notation JSON; Defined in RFC 4627 # ECMAScript/JavaScript; Defined in RFC 4329 (equivalent to # application/ecmascript "application/javascript", # but with looser processing rules) It is not accepted in IE 8 # or earlier - text/javascript is accepted but it is defined as obsolete in RFC 4329. # The "type" attribute of the