tests/test_files.py
def cfg_with_int_key():
    """Configuration with a key that is an integer"""
    return Configuration.from_dict(
        {
            "answer": {42: "Life, the Universe, and Everything"},
            "long_answer": {
                "parts": {
                    1: "The Answer to the Ultimate Question of",
                    2: "Life, the Universe, and Everything",
                },
            },
        }
    )
Configuration with a key that is an integer
Configuration with a key that is an integer
Configuration with a key that is an integer
def cfg_with_int_key():
    return Configuration.from_dict(
        {
            "answer": {42: "Life, the Universe, and Everything"},
            "long_answer": {
                "parts": {
                    1: "The Answer to the Ultimate Question of",
                    2: "Life, the Universe, and Everything",
                },
            },
        }
    )
def cfg_with_int_key ( ) : return Configuration . from_dict ( { "answer" : { 42 : "Life, the Universe, and Everything" } , "long_answer" : { "parts" : { 1 : "The Answer to the Ultimate Question of" , 2 : "Life, the Universe, and Everything" , } , } , } )
Configuration with a key that is an integer
Configuration with a key that is an integer
"""Configuration with a key that is an integer"""