private bool ShouldSetOrDelete(PythonType type) {
PythonType dt = type as PythonType;
// statics must be assigned through their type, not a derived type. Non-statics can
// be assigned through their instances.
return (dt != null && _info.DeclaringType == dt.UnderlyingSystemType) || !_info.IsStatic || _info.IsLiteral || _info.IsInitOnly;
}