Skip to content

Commit 1fee2b1

Browse files
committed
readme update
1 parent 607157c commit 1fee2b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Wireup keeps the API small, but it is built for larger application graphs.
254254
| Isolated scopes with explicit context sharing (batch jobs, fan-out tasks, multi-tenant processing) | [`container.enter_scope({...})`](https://maldoinc.github.io/wireup/latest/lifetimes_and_scopes/#sharing-context-across-scopes) |
255255
| Environment-specific graph | [Conditional registration](https://maldoinc.github.io/wireup/latest/conditional_registration/) with normal Python |
256256
| Generic repositories/services | [Generic dependencies](https://maldoinc.github.io/wireup/latest/generic_dependencies/) |
257-
| Modular or parametrized registration | [Functions that return injectables](https://maldoinc.github.io/wireup/latest/reusable_bundles/) |
257+
| Modular or parametrized registration | [Reusable bundles](https://maldoinc.github.io/wireup/latest/reusable_bundles/) |
258258
| Optional or conditional dependencies | [Params with defaults are skipped when unregistered; factories can return `T \| None`](https://maldoinc.github.io/wireup/latest/injectables/#optional-dependencies-and-default-values) |
259259

260260

@@ -305,7 +305,7 @@ async def weather_client_factory() -> AsyncIterator[WeatherClient]:
305305

306306
### 🔄 Lifetimes & Scopes
307307

308-
Wireup has three lifetimes: `singleton`, `scoped`, and `transient`, plus explicit scope forking from root for unit-of-work patterns like batch jobs, fan-out tasks, and multi-tenant request processing.
308+
Wireup has three lifetimes: `singleton`, `scoped`, and `transient`, plus explicit scope forking from root for unit-of-work patterns like batch jobs or fan-out tasks.
309309

310310
```python
311311
# Singleton: one instance per application (default)
@@ -358,7 +358,7 @@ def send_notification(notifier: Injected[Notifier]) -> None:
358358
When multiple implementations exist, distinguish them with qualifiers:
359359

360360
```python
361-
@injectable()
361+
@injectable
362362
def primary_database(settings: Settings) -> Database:
363363
return Database(url=settings.db.primary_dsn)
364364

@@ -404,7 +404,7 @@ async def process_batch(
404404
return await asyncio.gather(*[process_one(doc_id) for doc_id in doc_ids])
405405
```
406406

407-
Because child scopes don't silently inherit the parent graph, parallel workers can never accidentally share or corrupt each other's state.
407+
Because child scopes don't silently inherit the parent graph, parallel workers can't accidentally share state through the container.
408408

409409
See [Lifetimes & Scopes](https://maldoinc.github.io/wireup/latest/lifetimes_and_scopes/) for the full model.
410410

0 commit comments

Comments
 (0)