TypeError
calling Traversable.read_text()
via importlib.resources
#127340
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
topic-importlib
type-bug
An unexpected behavior, bug, or error
Bug report
importlib.resources.abc.Traversable.read_text
has a signature that only takes anencoding
parameter.importlib.resources._functional.read_text
calls it passingerrors
.This, unsurprisingly, causes a
TypeError
. My exact error message isTraversable.read_text() got an unexpected keyword argument 'errors'
, but I believe it's an instance ofCompatibilityFiles.SpecPath
(as I've never bothered updating this code for the structural changes).(Ping @jaraco)
The text was updated successfully, but these errors were encountered: