ConstructionWarning

Labs

class ConstructionWarning

Description

The arguments of a constructor call make the model invalid wherever it is placed.

Issued through warnings.warn(), so the standard filters apply: warnings.simplefilter("error", ConstructionWarning) turns every one into an exception.