Types.hx 646 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package python.lib;
  2. import python.lib.Builtin;
  3. import python.lib.io.IOBase;
  4. abstract Choice <A,B>(Dynamic) {
  5. @:from public static inline function fromA <A,B>(x:A):Choice<A,B> return cast x;
  6. @:from public static inline function fromB <A,B>(x:B):Choice<A,B> return cast x;
  7. }
  8. typedef Variant<A,B> = Dynamic;
  9. typedef Variant3<A,B,C> = Dynamic;
  10. typedef Variant4<A,B,C,D> = Dynamic;
  11. typedef NativeHashable = {
  12. public function __hash__():Int;
  13. }
  14. typedef NativeEqual = {
  15. public function __eq__(other:Dynamic):Int;
  16. }
  17. typedef NativeComparable = {
  18. public function __cmp__(other:Dynamic):Int;
  19. }
  20. extern class TB {}
  21. extern class Frame {}