TextIOWrapper.hx 497 B

12345678910111213141516171819202122
  1. package python.lib.io;
  2. import python.lib.io.BufferedIOBase;
  3. import python.lib.io.TextIOBase;
  4. import python.Syntax;
  5. import python.KwArgs;
  6. typedef TextIOWrapperOptions = {
  7. ?encoding : String,
  8. ?errors : String,
  9. ?newline : String,
  10. ?line_buffering : Bool,
  11. ?write_through : Bool
  12. };
  13. @:pythonImport("io", "TextIOWrapper")
  14. extern class TextIOWrapper extends TextIOBase
  15. {
  16. public function new (buffer:BufferedIOBase, ?options:KwArgs<TextIOWrapperOptions>):Void;
  17. public var line_buffering : Bool;
  18. }