DataErrorWarning is used in some places. The package should define its own class FlattenToolWarning(UserWarning) and have DataErrorWarning subclass it. FlattenToolWarning can be used for all other warnings if you don't want to invent further subclasses. This will make it easier to disambiguate warnings within flatten-tool, and between other sources.
DataErrorWarning
is used in some places. The package should define its ownclass FlattenToolWarning(UserWarning)
and haveDataErrorWarning
subclass it.FlattenToolWarning
can be used for all other warnings if you don't want to invent further subclasses. This will make it easier to disambiguate warnings within flatten-tool, and between other sources.