Conditions | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
11 | def suppress_warnings( |
||
12 | do_suppress: Optional[bool] = True, |
||
13 | fork_inst: Optional[type] = StateHolder): |
||
14 | """ |
||
15 | Suppress (or stop suppressing) warnings. |
||
16 | :param do_suppress: if ``True``, warnings will be suppressed from now on. |
||
17 | :param fork_inst: if given, it uses this fork of ``JsonSerializable``. |
||
18 | :return: None. |
||
19 | """ |
||
20 | fork_inst._suppress_warnings = do_suppress |
||
21 | |||
39 |