package python.lib; import python.lib.Builtin; import python.lib.io.IOBase; abstract Choice (Dynamic) { @:from public static inline function fromA (x:A):Choice return cast x; @:from public static inline function fromB (x:B):Choice return cast x; } typedef Variant = Dynamic; typedef Variant3 = Dynamic; typedef Variant4 = Dynamic; typedef NativeHashable = { public function __hash__():Int; } typedef NativeEqual = { public function __eq__(other:Dynamic):Int; } typedef NativeComparable = { public function __cmp__(other:Dynamic):Int; } extern class TB {} extern class Frame {}