Nothing happens if None.
(self)
| 301 | |
| 302 | class TestOptionalPipe: |
| 303 | def test_optional(self): |
| 304 | """ |
| 305 | Nothing happens if None. |
| 306 | """ |
| 307 | c = optional(pipe(str, Converter(to_bool), bool)) |
| 308 | |
| 309 | assert None is c.converter(None, None, None) |
| 310 | |
| 311 | def test_pipe(self): |
| 312 | """ |