def on_tomlkit_dumps(self, tomlkit, config, dictionary, **kwargs):
inline_tables = set(kwargs.get("<STR_LIT>", []))<EOL>def _dump_dict(dictionary, source, source_path=[]):<EOL><INDENT>for (key, value) in dictionary.items():<EOL><INDENT>if isinstance(value, dict):<EOL><INDENT>is_inline = any(<EOL>[<EOL>fnmatch.fnmatch("<STR_LIT:.>".join(source_path + [key]), pattern)<EOL>for pattern in inline_tables<EOL>]<EOL>)<EOL>if is_inline:<EOL><INDENT>table = tomlkit.inline_table()<EOL>for (inline_key, inline_value) in value.items():<EOL><INDENT>if isinstance(inline_value, dict):<EOL><INDENT>table[inline_key] = _dump_dict(<EOL>inline_value,<EOL>tomlkit.inline_table(),<EOL>source_path=source_path + [inline_key],<EOL>)<EOL><DEDENT>else:<EOL><INDENT>table[inline_key] = inline_value<EOL><DEDENT><DEDENT>source[key] = table<EOL><DEDENT>else:<EOL><INDENT>source[key] = _dump_dict(<EOL>value, tomlkit.table(), source_path=source_path + [key]<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>source[key] = value<EOL><DEDENT><DEDENT>return source<EOL><DEDENT>return tomlkit.dumps(_dump_dict(dictionary, tomlkit.document()))<EOL>
The `tomlkit <https://pypi.org/project/tomlkit/>`_ dumps method.

        :param module tomlkit: The ``tomlkit`` module
        :param class config: The instance's config class
        :param dict dictionary: The dictionary to serialize
        :param list inline_tables: A list glob patterns to use for derminining which
            dictionaries should be rendered as inline tables, defaults to [], optional
        :returns: The TOML serialization
        :rtype: str

        Dumping inline tables uses :mod:`fnmatch` to compare ``.`` delimited dictionary
        path glob patterns to filter tables

        >>> config.dumps_toml(prefer="tomlkit")
        name = "My Project"
        type = "personal-project"
        keywords = ["example", "test"]
        [dependencies]
        [dependencies.a-dependency]
        name = "A Dependency"
        version = "v12"
        >>> config.dumps_toml(prefer="tomlkit", inline_tables=["dependencies"])
        name = "My Project"
        type = "personal-project"
        keywords = ["example", "test"]
        dependencies = {a-dependency = {name = "A Dependency",version = "v12"}}
        >>> config.dumps_toml(prefer="tomlkit", inline_tables=["dependencies.*"])
        name = "My Project"
        type = "personal-project"
        keywords = ["example", "test"]
        [dependencies]
        a-dependency = {name = "A Dependency",version = "v12"}