Simon Brunning

Results 69 comments of Simon Brunning

So, for example `assert_that(greater_than(1, "a"))` also throws a `TypeError` right now. Should that fail rather than throw an exception?

I've not done any async work myself, so I can't make any suggestions right now. Do we think there might be a need for some async specific matchers? What might...

Seems reasonable. What do you think an assertion for a nested exception might look like?

Interesting idea - but I'm not sure we would have the community support to provide and maintain the translations. If anyone has any ideas, I'm all ears.

Can you give an example? What do you mean by a sized matcher? Do you mean `has_length()`?

Ooooh, thanks. I'll take a look - or feel free to submit a PR.

I'm playing with tests in #179, but weirdly, while I do see your problem in IntelliJ, mypy seems to be happy with `assert_that([], is_(empty()))`. Hmmm.

Ah - I was missing the `is_` - that does recreate the issue. I think there's an issue with `is_()` itself - `is_(empty())` fails all by itself!

> But, I dont understand why there would be an issue with Union[Matcher[T], T]. Nor me - but if it works, it works. > The PyCharm issue persists, but this...