If an attribute is `init=False`, it's legal to come after a mandatory attribute.
(self, slots, frozen)
| 787 | |
| 788 | @given(booleans(), booleans()) |
| 789 | def test_no_init_order(self, slots, frozen): |
| 790 | """ |
| 791 | If an attribute is `init=False`, it's legal to come after a mandatory |
| 792 | attribute. |
| 793 | """ |
| 794 | make_class( |
| 795 | "C", |
| 796 | {"a": attr.ib(default=Factory(list)), "b": attr.ib(init=False)}, |
| 797 | slots=slots, |
| 798 | frozen=frozen, |
| 799 | ) |
| 800 | |
| 801 | def test_sets_attributes(self): |
| 802 | """ |
nothing calls this directly
no test coverage detected