Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Confusing undocumented behavior of "root" Configuration property name. #874

Copy link
Copy link
Open
@jnhnum1

Description

@jnhnum1
Issue body actions

Using dependency-injector version 4.45.0 in Python 3.13.1 in MacOS 14.5.

Minimal reproducible example:

from dependency_injector.providers import Configuration

config = Configuration()
config.from_dict(
    {"a": {"root": 3}}
)

assert config.a.root() == 3, f"Expected 3, got {config.a.root()}"

Skimming the source, it appears the issue is here: https://github.com/ets-labs/python-dependency-injector/blob/6e4794bab18fef3ffbc6a11bee526fe24688286f/src/dependency_injector/providers.pyx#L1595C1-L1597C26

It doesn't appear that this "root" property is used anywhere, nor is it documented at https://python-dependency-injector.ets-labs.org/providers/configuration.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.