Open aleexf opened 6 months ago
Operator + is not overloaded and comes from the base class str so it returns an instance of type str. This behaviour isn't obvious at all:
+
str
>>> type(plumbum.local.path(".") + "/subdir") <class 'str'> >>> type(plumbum.local.path(".") / "subdir") <class 'plumbum.path.local.LocalPath'>
Operator
+
is not overloaded and comes from the base classstr
so it returns an instance of typestr
. This behaviour isn't obvious at all: