Skip to content

Make config have type Config instead of dict #74

@forman

Description

@forman

Is your feature request related to a problem? Please describe.

I'm not happy with the configuration being a dict in many places, because it implies and hence duplicates definition of default values when accessing values using config.get(key, default) or config.get(key) or default.

Describe the solution you'd like

  • Refactor out Config class from Context
  • Make Processor constructor turn config dict into Config object,
  • Pass config: Config to Context and publish via ctx.config: Config property.

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