def configure_factory_not_created_class_instance_method(config: Config): config.arg_factory(NeedsInt, a_int=ProvidesInt.get_int)
def configure_factory_class_instance_method(config: Config): config.arg_factory(NeedsInt, a_int=ProvidesInt(MyInt()).get_int)
def configure_parameter_and_factory(config: Config): config.arguments(ParameterAndFactory, number=42, text="42") config.arg_factory(ParameterAndFactory, text=get_text)
def configure_factory_class_static(config: Config): config.arg_factory(NeedsInt, a_int=ProvidesInt.get_int_static)
def configure_arg_factory(config: Config): config.arg_factory(ArgFactory, name=factory) config.arguments(NameProvider, name="foobar")