Skip to content

rename: 🚚 injection.utils -> injection.loaders#233

Merged
remimd merged 1 commit intodevfrom
loaders
May 6, 2025
Merged

rename: 🚚 injection.utils -> injection.loaders#233
remimd merged 1 commit intodevfrom
loaders

Conversation

@remimd
Copy link
Copy Markdown
Member

@remimd remimd commented May 6, 2025

No description provided.

@remimd remimd requested a review from Copilot May 6, 2025 08:08
@remimd remimd self-assigned this May 6, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames the module reference from "injection.utils" to "injection.loaders" across tests, documentation, and core setup files for improved naming clarity.

  • Updated test files to import from "injection.loaders"
  • Modified documentation to reflect the new module naming
  • Adjusted conftest and internal module files accordingly, with changes in FastAPI extension files also addressing type handling

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/utils/test_python_module_loader.py Updated import from "injection.utils" to "injection.loaders".
tests/utils/test_load_profile.py Updated import from "injection.utils" to "injection.loaders".
injection/testing/init.py Updated import from "injection.utils" to "injection.loaders".
injection/ext/fastapi.pyi Added new file for FastAPI type annotations using collection patterns.
injection/ext/fastapi.py Removed the TYPE_CHECKING branch for Inject type alias in favor of a runtime alias.
documentation/utils.md Updated code examples to use "injection.loaders" instead of "injection.utils".
conftest.py Updated import from "injection.utils" to "injection.loaders".
Comments suppressed due to low confidence (1)

injection/ext/fastapi.py:33

  • The removal of the TYPE_CHECKING branch for providing a type alias for 'Inject' may impact static analysis. Consider retaining or updating explicit type hints to ensure tooling support remains robust.
if TYPE_CHECKING:

@remimd remimd merged commit 243df7a into dev May 6, 2025
5 checks passed
@remimd remimd deleted the loaders branch May 6, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants