TextIOBase.hx 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package python.lib.io;
  2. import python.lib.io.BufferedIOBase;
  3. import python.lib.io.IOBase;
  4. @:pythonImport("io", "TextIOBase")
  5. extern class TextIOBase extends IOBase implements ITextIOBase {
  6. public var encoding:String;
  7. public var error:String;
  8. public var newlines:Null<haxe.EitherType<String, Tuple<String>>>;
  9. public function detach ():BufferedIOBase;
  10. public function write (s:String):Int;
  11. public function read (n:Int):String;
  12. public var buffer:BufferedIOBase;
  13. }
  14. @:remove extern interface ITextIOBase extends IIOBase {
  15. public var encoding:String;
  16. public var error:String;
  17. public var newlines:Null<haxe.EitherType<String, Tuple<String>>>;
  18. public var buffer:BufferedIOBase;
  19. public function detach ():BufferedIOBase;
  20. public function write (s:String):Int;
  21. public function read (n:Int):String;
  22. }