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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I hava a project "po" with some data files:
Some times ago I used data files with non PEP methods to get package data file Path:
This time I try to use canonic PEP method:
Its also work correctly, but
importlib.resources.files.joinpath
return an abstract classTraversable
:Im gettin Linter Error : "Traversable" is incompatible with Path
But, all two methods return the equal type
files('po.data').joinpath(file)
:I broke the head, but I do not know as correctly to bypass a mistake or to make.
Help, please!
Many Thanks!
Beta Was this translation helpful? Give feedback.
All reactions