Skip to content

Commit bcb402c

Browse files
committed
Fix bug in doc
1 parent b2c6c1e commit bcb402c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ You should rarely need to instantiate `LazyModule` directly — use
208208
| `SUPPORT_LAZY_IMPORT` | `bool` | Always `True` — this package provides its own implementation. |
209209
| `SETATTR_TARGET` | `Literal["module", "proxy"]` | Controls where ``LazyModule.__setattr__`` writes non-internal attributes when the real module has not yet been loaded (or when loading has failed). |
210210

211-
> [!WARNING] When `LAZY_SETATTR_TARGET = "proxy"`, attributes assigned directly to the proxy will
211+
> [!WARNING] When `SETATTR_TARGET = "proxy"`, attributes assigned directly to the proxy will
212212
> shadow attributes from the underlying module after the module is loaded. Use `"proxy"` only
213213
> when attaching transient metadata to proxies; prefer `"module"` for regular application code to
214214
> avoid subtle naming-shadowing bugs.

lazyimports/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
# License MIT <aiwonderland> in <2026>
5151

52-
# WARNING: When LAZY_SETATTR_TARGET = "proxy", attributes stored on the proxy
52+
# WARNING: When SETATTR_TARGET = "proxy", attributes stored on the proxy
5353
# shadow identically named attributes from the real module once loaded.
5454
# Use "proxy" only for temporary proxy-local metadata.
5555
SETATTR_TARGET = "module"

0 commit comments

Comments
 (0)