def test_set_with_non_str_types():
    """This replicates issue #1005 in a simplified setup."""
    settings = Dynaconf(merge_enabled=True)
    settings.set("a", {"b": {1: "foo"}})
    settings.set("a", {"b": {"c": "bar"}})
    assert settings["a"]["b"][1] == "foo"
    assert settings["a"]["b"]["c"] == "bar"
This replicates issue #1005 in a simplified setup.
tests/test_base.py