class LazyFile:
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __getattr__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | close |
Closes the underlying file, no matter what. |
Method | close_intelligently |
This function only closes the file if it was opened by the lazy file wrapper. For instance this will never close stdin. |
Method | open |
Opens the file if it's not yet open. This call might fail with a FileError . Not handling this error will produce an error that Click shows. |
Instance Variable | _f |
Undocumented |
Instance Variable | atomic |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | mode |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | should_close |
Undocumented |
Undocumented
Parameters | |
filename:str | Undocumented |
mode:str | Undocumented |
encoding:t.Optional[ | Undocumented |
errors:t.Optional[ | Undocumented |
atomic:bool | Undocumented |
FileError
. Not handling this error will produce an error
that Click shows.Returns | |
t.IO | Undocumented |