Commit f347bb3
committed
Accept numpy scalar types in expr annotations
Add np.number to Union type annotations for buildGenExprObj and _expr_richcmp so numpy scalar types are treated as compatible GenExpr/Expr inputs. Also reformat the _expr_richcmp signature across multiple lines for readability. No behavior changes beyond broader type compatibility with numpy scalar types.1 parent 1450215 commit f347bb3
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
864 | 868 | | |
865 | 869 | | |
866 | 870 | | |
| |||
0 commit comments