Skip to content

Commit 3dabfa8

Browse files
committed
Version 5.2.1
1 parent e6bc868 commit 3dabfa8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
python-inject changes
22
=====================
33

4+
### 5.2.1 (2024-03-24)
5+
- Remove type stubs as source has type hints, #95.
6+
- Added context manager condition to attr function, #96, #94.
7+
8+
### 5.2.0 (2023-11-23)
9+
- Context managers support.
10+
411
### 5.1.0 (2023-10-17)
512
- Optionally allow overriding dependencies.
613
- Unified configure syntax with clear and once flags.

src/inject/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def __get__(self, obj: Any, owner: Any) -> Injectable:
284284
inst = instance(self._cls)
285285
if isinstance(inst, contextlib._AsyncGeneratorContextManager):
286286
raise InjectorException(
287-
'Fail to load _AsyncGeneratorContextManager, Use autoparams, param or params instead of attr funcion')
287+
'Fail to load _AsyncGeneratorContextManager, use autoparams, param or params instead of attr function')
288288
elif isinstance(inst, contextlib._GeneratorContextManager):
289289
with contextlib.ExitStack() as sync_stack:
290290
inst = sync_stack.enter_context(inst)

0 commit comments

Comments
 (0)