Skip to content

Support resolution of configs defined in function defaults #10

Description

@JIy3AHKO

I think it would reduce code duplication, if we could specify all config values in function signature:

import cfg_package

@cfn.config()
def func(arg=1, configurable_arg=cfg_package.some_config):
     ...

This should behave the same way as:

import cfg_package

@cfn.config(arg=1, configurable_arg=cfg_package.some_config)
def func(arg, configurable_arg):
     ...

but will allow us to avoid duplication of func arguments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions