We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 413a4f5 commit fe4ded1Copy full SHA for fe4ded1
src/structlog/threadlocal.py
@@ -120,8 +120,8 @@ def as_immutable(logger: TLLogger) -> TLLogger:
120
logger = logger.bind()
121
122
try:
123
- ctx = logger._context._tl.dict_.__class__( # type: ignore[union-attr]
124
- logger._context._dict # type: ignore[union-attr]
+ ctx = logger._context._tl.dict_.__class__( # type: ignore[attr-defined]
+ logger._context._dict # type: ignore[attr-defined]
125
)
126
bl = logger.__class__(
127
logger._logger, # type: ignore[attr-defined, call-arg]
0 commit comments