Issue 10981 - Contracts in pure class methods are useless

Issue 10981 - Contracts in pure class methods are useless