Removed unnecessary type annotations from Resistance and State.