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
I think we should just use str everywhere. If you are passing a non-string, and it isn't converted to a string anywhere in logging, it may fail when some completely unrelated code handles the log records elsewhere. IMO this is exactly what type checking is supposed to avoid.
Activity
[-]logging module LogRecord `__init__`[/-][+]logging module LogRecord `__init__` mismatch[/+]Akuli commentedon Mar 22, 2023
I think we should just use
streverywhere. If you are passing a non-string, and it isn't converted to a string anywhere inlogging, it may fail when some completely unrelated code handles the log records elsewhere. IMO this is exactly what type checking is supposed to avoid.aminalaee commentedon Mar 23, 2023
But in that case type checking is actually stricter than the implementation, and causes mismatch between typeshed and python docs and implementation.