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

Object provider #28

Closed
lesnik512 opened this issue Jun 8, 2024 · 0 comments · Fixed by #45
Closed

Object provider #28

lesnik512 opened this issue Jun 8, 2024 · 0 comments · Fixed by #45
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lesnik512
Copy link
Member

Object provider returns an object “as is”.

from that_depends import BaseContainer, providers


class DIContainer(BaseContainer):
    object_provider = providers.Object(1)


assert DIContainer.object_provider() == 1
@lesnik512 lesnik512 added the good first issue Good for newcomers label Jun 8, 2024
@lesnik512 lesnik512 added the enhancement New feature or request label Jun 8, 2024
@lesnik512 lesnik512 added this to the 1.13.0 milestone Jun 22, 2024
@lesnik512 lesnik512 self-assigned this Jun 22, 2024
@lesnik512 lesnik512 removed the good first issue Good for newcomers label Jun 22, 2024
@lesnik512 lesnik512 linked a pull request Jun 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant