Skip to content

[verdi branch]: CodeBuilder needs a way to remove keys #1670

Open
@DropD

Description

@DropD

Summary

With the addition of the check for extraneous keys it becomes necessary to be able to remove them after new() complains.

Problem Illustration:

ipython >> builder = CodeBuilder()
ipython >> builder.label = ...
# ... lines and lines of generating and adding the other keys
ipython >> builder.extraneous_key = ...
ipython >> my_code = builder.new()
CodeValidationError ...
ipython >> # Now the builder object that has been prepared in arduous work has become useless
ipython >> # And we need to start from scratch!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions