[Python-Dev] Re: When to remove BytesWarning?

2020-11-11 Thread Serhiy Storchaka
11.11.20 15:05, John Hagen пише: > If I recall, it was str(bytes) warning that flagged in a few places and was > missing a .decode() call or similar. > > It seems like the bytes== warnings could be implemented in a type checker > such as mypy, if it doesn't > already do this. Assuming you have c

[Python-Dev] Re: When to remove BytesWarning?

2020-11-11 Thread John Hagen
If I recall, it was str(bytes) warning that flagged in a few places and was missing a .decode() call or similar. It seems like the bytes== warnings could be implemented in a type checker such as mypy, if it doesn't already do this. Assuming you have correct type coverage/inference on your proje