Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Commit1c55e8d
- Convert `unspecified` and `unknown` to be members of a `Sentinels` enum, rather than instances of bespoke classes. - An enum feels more idiomatic here, and works better with type checkers. - Convert some `==` and `!=` checks for these values to identity checks, which are more idiomatic with sentinels. - _Don't_ do the same for `Null`, as this needs to be a distinct type due to its usage in `clinic.py`.- Use `object` as the annotation for `default` across `clinic.py`. `default` can be literally any object, so `object` is the correct annotation here.---Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent61027c0 commit1c55e8d
1 file changed
+23
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | | - | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | | - | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
72 | | - | |
73 | | - | |
74 | 80 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
2600 | 2602 | | |
2601 | 2603 | | |
2602 | 2604 | | |
2603 | | - | |
| 2605 | + | |
2604 | 2606 | | |
2605 | 2607 | | |
2606 | 2608 | | |
| |||
2686 | 2688 | | |
2687 | 2689 | | |
2688 | 2690 | | |
2689 | | - | |
| 2691 | + | |
2690 | 2692 | | |
2691 | 2693 | | |
2692 | 2694 | | |
2693 | | - | |
| 2695 | + | |
2694 | 2696 | | |
2695 | 2697 | | |
2696 | 2698 | | |
| |||
2699 | 2701 | | |
2700 | 2702 | | |
2701 | 2703 | | |
2702 | | - | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
2703 | 2708 | | |
2704 | 2709 | | |
2705 | 2710 | | |
| |||
2713 | 2718 | | |
2714 | 2719 | | |
2715 | 2720 | | |
2716 | | - | |
| 2721 | + | |
2717 | 2722 | | |
2718 | 2723 | | |
2719 | 2724 | | |
| |||
3967 | 3972 | | |
3968 | 3973 | | |
3969 | 3974 | | |
3970 | | - | |
| 3975 | + | |
3971 | 3976 | | |
3972 | 3977 | | |
3973 | 3978 | | |
| |||
4767 | 4772 | | |
4768 | 4773 | | |
4769 | 4774 | | |
4770 | | - | |
| 4775 | + | |
4771 | 4776 | | |
4772 | 4777 | | |
4773 | 4778 | | |
| |||
0 commit comments
Comments
(0)