/// <summary> /// Return python type /// </summary> /// <returns></returns> public PyType GetPyType() { if (IsNull) { _pyType = PyType.Invalid; } if (IsNone) { _pyType = PyType.NoneType; } if (!_pyType.HasValue) { _pyType = Py.GetPyType(this); } return(_pyType.Value); }