Commit d0014ff
authored
Simplify encoding kw_only args and test init=False args. (#37231)
* Simplify encoding kw_only args and test init=False args.
1. Replace the helper function for determining whether to use kw_only with a simpler to follow condition.
2. Add test coverage for the init=False case.
* Fix pre-commit.1 parent adc04ca commit d0014ff
File tree
2 files changed
+14
-15
lines changed- sdks/python/apache_beam/coders
2 files changed
+14
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
376 | 375 | | |
377 | 376 | | |
378 | 377 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | 378 | | |
392 | 379 | | |
393 | 380 | | |
| |||
518 | 505 | | |
519 | 506 | | |
520 | 507 | | |
521 | | - | |
| 508 | + | |
522 | 509 | | |
523 | 510 | | |
524 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
126 | 135 | | |
127 | 136 | | |
128 | 137 | | |
| |||
309 | 318 | | |
310 | 319 | | |
311 | 320 | | |
| 321 | + | |
| 322 | + | |
312 | 323 | | |
313 | 324 | | |
314 | 325 | | |
| |||
750 | 761 | | |
751 | 762 | | |
752 | 763 | | |
| 764 | + | |
753 | 765 | | |
754 | 766 | | |
755 | 767 | | |
| |||
786 | 798 | | |
787 | 799 | | |
788 | 800 | | |
789 | | - | |
| 801 | + | |
790 | 802 | | |
791 | 803 | | |
792 | 804 | | |
| |||
0 commit comments