Repository navigation
Commit b32392d
authored
Avro: Replace manual slots with dataclass slots (#4091)
Use slots=True for ListReader and MapReader instead of
manually declaring __slots__.
Preserve the original dataclass fields and use two-argument
super() for compatibility with slotted dataclasses.
Internal cached attributes now use the inherited instance
dictionary instead of dedicated slots.
Refs #40861 parent 0a536e4 commit b32392d
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | | - | |
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
389 | | - | |
| 388 | + | |
390 | 389 | | |
391 | 390 | | |
392 | 391 | | |
| |||
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | | - | |
| 420 | + | |
422 | 421 | | |
423 | | - | |
424 | 422 | | |
425 | 423 | | |
426 | 424 | | |
427 | 425 | | |
428 | | - | |
| 426 | + | |
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
| |||
0 commit comments