Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c25c1 commit 5ca474aCopy full SHA for 5ca474a
2 files changed
src/runtime/pyobject.cs
@@ -253,6 +253,8 @@ public bool TypeCheck(PyType typeOrClass)
253
return Runtime.PyObject_TypeCheck(obj, typeOrClass.obj);
254
}
255
256
+ internal PyType PyType => this.GetPythonType();
257
+
258
259
/// <summary>
260
/// HasAttr Method
src/runtime/pytype.cs
@@ -63,6 +63,10 @@ internal TypeFlags Flags
63
set => Util.WriteCLong(this, TypeOffset.tp_flags, (long)value);
64
65
66
+ internal PyDict Dict => new(Util.ReadRef(this, TypeOffset.tp_dict));
67
68
+ internal PyTuple MRO => new(GetMRO(this));
69
70
/// <summary>Checks if specified object is a Python type.</summary>
71
public static bool IsType(PyObject value)
72
{
0 commit comments