You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where in the merging, the configuration of the exporter can be overwritten by the parent configuration. In other words, if self and super() contain different values for the same setting, the resulting config will contain the super()s setting.
I am a bit confused about why this is the case. My expectation is that the reverse should take place: a subclass should inherit its parent's configuration and modify it according to its own needs.
As a quick check, I replaced the line that is merging with
In exporters
templateexporter, html, latex, markdown,rst
andasciidoc
, the following is presentwhere in the merging, the configuration of the exporter can be overwritten by the parent configuration. In other words, if
self
andsuper()
contain different values for the same setting, the resulting config will contain thesuper()
s setting.I am a bit confused about why this is the case. My expectation is that the reverse should take place: a subclass should inherit its parent's configuration and modify it according to its own needs.
As a quick check, I replaced the line that is merging with
and the tests are still passing (except for some skipped ones due to not installed programs).
Is there a reason why the former is preferable to the latter style of merging configs?
The text was updated successfully, but these errors were encountered: