Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Py.Type
SourceIntrospection 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. Bytes
covers both the Str
values of Python 2 and the Bytes
values of Python 3. Long
covers both the Int
values of Python 2 and the Long
values of Python 3. Capsule
corresponds to the values created with Py.Capsule
. Closure
corresponds to the values created with Py.Callable
.
Wrapper for PyType_IsSubtype
mismatch ty obj
raises a type mismatch Failure _
that indicates that an object of type ty
was expected, but obj
was found.