(x)
| 113 | |
| 114 | |
| 115 | def expand_hw(x): |
| 116 | # judge int is 5 times faster than judge Sequence |
| 117 | if isinstance(x, int): |
| 118 | return x, x |
| 119 | if isinstance(x, Sequence): |
| 120 | return int(x[0]), int(x[1]) |
| 121 | return int(x), int(x) |
| 122 | |
| 123 | |
| 124 | def expand_dhw(x): |
no outgoing calls
no test coverage detected