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
The path attribute of your File class should be a pathlib.Path: using strings as paths is error prone as it invites using string manipulation functions to modify them (instead of path specific methods)
The type for accepting paths should be os.PathLike | str, not str, so the functions signal they accept e.g. pathlib.Paths as well
The text was updated successfully, but these errors were encountered:
The
path
attribute of yourFile
class should be apathlib.Path
: using strings as paths is error prone as it invites using string manipulation functions to modify them (instead of path specific methods)The type for accepting paths should be
os.PathLike | str
, notstr
, so the functions signal they accept e.g.pathlib.Path
s as wellThe text was updated successfully, but these errors were encountered: