Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(di): guard against mutable module container #10841

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2024

  1. chore(di): guard against mutable module container

    When disovering functions on module import, we look at the module as a
    container of function-like objects. If the module is partially loaded,
    its `__dict__` might mutate. We ensure to iterate over a copy of the
    module's `__dict__` when iterating over it. We expect the original
    module to mutate dynamically at runtime, so by the time we make a copy
    of its underlying lookup dict, we are able to detected at the very least
    everything that corresponds to the actual source code.
    P403n1x87 committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    421e7ec View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    cc4c699 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    5bec53b View commit details
    Browse the repository at this point in the history