str subclasses for some of its functionality. When trying to export these with
openpyxl, one has to take special care to convert them into plain string, for example via
"" + s. This is inconvenient and ugly.
I believe this to be a regression, since openpyxl 2.5 accepted them just fine.
The problem stems from the use of
in for type checks in
cell.py instead of
isinstance. I was going to open a PR to fix that before I noticed that they were deliberate changes introduced in:
I believe the aforementioned changes are steps in the wrong direction and needlessly restrict the input types, going against most OOP and duck typing principles.
Maybe related to