Marcin Kozak
Marcin Kozak
In four locations, `# type: ignore` is added. The question is, should these be fixed or left? Maybe simplified?
The `check_comparison()` function seems to be reluctant. It works the same way as `check_if()`, but seems to be less clear. For instance, ``` check_if(x >= y) ``` is clearer, and...
`_raise()` has quite a significant overhead, so it should be redesigned to make it faster.
Add the description of `check_if_in_limits()` to docs files.
Currently, `condition_to_check = operator(len(item), expected_length)` disables to use `handle_with` as exception/warning when `assign_length_to_others=True`, as it's used only in the next step. To use it, a `try-except` block, or something similar,...
In Python, you can do this: ```python x = [10, ] if x: print("x is not empty") ``` You cannot do this with `easycheck`, as `check_if()` accepts only a Boolean...
Check if the exception class provided has `.message` attribute: if it does and the user did not provide a message, use it; otherwise, don't.
Imagine you have a custom exception that takes some arguments. You cannot pass these arguments using `easycheck`. This tasks aims to enable that, through passing `*args` and `**kwargs` from `easycheck`...
Catching a check is easy with `catch_check()`: ``` >>> check = catch_check(2 == 1, ValueError) >>> check ValuError >>> check = catch_check(2 == 2, ValueError) >>> check ``` What the...