Py.TypeIntrospection of Python types
type t = | Unknown | |
| Bool | |
| Bytes | |
| Callable | |
| Capsule | |
| Closure | |
| Dict | |
| Float | |
| List | |
| Int | |
| Long | |
| Module | |
| None | |
| Null | |
| Tuple | |
| Type | |
| Unicode | |
| Iter | |
| Set | (* Some types of Python values. |
Wrapper for PyType_IsSubtype
val is_none : Object.t -> boolis_none o returns true if the Python object o is None.
val name : t -> stringname t returns a string that represents the type t.
val mismatch : string -> Object.t -> 'amismatch ty obj raises a type mismatch Failure _ that indicates that an object of type ty was expected, but obj was found.