Skip to content

Commit 1643546

Browse files
committed
!squash frozen dataclass sealable fix docstrings
1 parent 1166d82 commit 1643546

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/libtmux/_internal/frozen_dataclass_sealable.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@
66
standard dataclasses module, with the following features:
77
88
1. Field-level mutability control:
9-
- Use the `mutable_during_init` decorator to mark fields that should be mutable
10-
during the initialization phase but become immutable after sealing.
9+
10+
Use the `mutable_during_init` decorator to mark fields that should be mutable
11+
during the initialization phase but become immutable after sealing.
1112
1213
2. Two-phase initialization:
14+
1315
- Objects start in an "initializing" state where designated fields can be modified.
1416
- Objects can be explicitly sealed to prevent further modification of any fields.
1517
1618
3. Circular reference support:
17-
- Create objects, establish circular references between them, then seal
18-
them together.
19+
20+
Create objects, establish circular references between them, then seal
21+
them together.
1922
2023
4. Backward compatibility:
21-
- Objects are immutable by default, sealing occurs automatically at the end of
22-
initialization unless explicitly deferred.
24+
25+
Objects are immutable by default, sealing occurs automatically at the end of
26+
initialization unless explicitly deferred.
2327
2428
Limitations:
2529

0 commit comments

Comments
 (0)