You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering a class with isatty() returning True, Loguru's should_wrap() function will return True on Windows, resulting in AttributeError: 'CustomSink' object has no attribute 'flush' when colorama will write to the sink.
The stream should only be wrapped if equals to sys.__stdout__ or sys.__stderr__. If for some reason another stream needs to be wrapped, user should wrap it himself (in practice, this is probably never needed).
The text was updated successfully, but these errors were encountered:
Considering a class with
isatty()
returningTrue
, Loguru'sshould_wrap()
function will returnTrue
on Windows, resulting inAttributeError: 'CustomSink' object has no attribute 'flush'
whencolorama
will write to the sink.The stream should only be wrapped if equals to
sys.__stdout__
orsys.__stderr__
. If for some reason another stream needs to be wrapped, user should wrap it himself (in practice, this is probably never needed).The text was updated successfully, but these errors were encountered: