File: warnings.py

package info (click to toggle)
python-cloup 3.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: python: 5,371; makefile: 120
file content (11 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
"""
This module contains a boolean variable for each warning that may be raised
by Cloup. To suppress a warning, set the corresponding variable to ``False``.
This is an alternative to using ``warnings.filterwarnings`` that:

- IMHO, offers a better developer experience since setting a boolean is
  easier and cleaner than writing a regex that matches a warning message
- can be used by Cloup itself to skip the checks that (may) generate a warning.
"""

formatter_settings_conflict = True