Repository navigation
Commit 472173e
committed
Widen truncate project() to a boolean expression
Truncate project() can return Or, so annotate it as BooleanExpression and
evaluate only single predicates in the residual visitor. mypy can now flag
callers that assume a predicate.1 parent 3601078 commit 472173e
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | | - | |
1979 | | - | |
1980 | | - | |
| 1978 | + | |
1981 | 1979 | | |
1982 | 1980 | | |
1983 | 1981 | | |
1984 | 1982 | | |
1985 | | - | |
1986 | | - | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
1987 | 1986 | | |
1988 | 1987 | | |
1989 | 1988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
792 | | - | |
| 793 | + | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| |||
1054 | 1055 | | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | | - | |
| 1058 | + | |
1058 | 1059 | | |
1059 | 1060 | | |
1060 | 1061 | | |
| |||
0 commit comments