Make sure @factories is removed from config

This commit is contained in:
Ines Montani 2020-07-26 15:11:24 +02:00
parent ac5901d076
commit 53d37da29a

View File

@ -532,6 +532,7 @@ class Language:
resolved, filled = registry.resolve(cfg, validate=validate, overrides=overrides)
filled = filled[factory_name]
filled["factory"] = factory_name
filled.pop("@factories", None)
self._pipe_configs[name] = filled
return resolved[factory_name]