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
error: Unsupported operand types for / ("S3Path" and "AnyPath") [operator]
error: Unsupported operand types for / ("S3Path" and "S3Path") [operator]
note: Right operand is of type "Path | CloudPath | AnyPath | S3Path"
error: Unsupported left operand type for / ("None") [operator]
note: Left operand is of type "Path | S3Path | None"
In my opinion this is valid code. The result obviously ought to be an S3Path object merged from the original S3Path object, a string, another path-like object (could be a relative PosixPath even) and something totally different, as long as it can be interpreted as a path component.
The text was updated successfully, but these errors were encountered:
This would just return the right hand operand, which we think in more cases would be confusing than helpful (presumably, if you are trying to join the paths you want them to be put together).
cloudpathlib: 0.19.0
Python: 3.12
mypy: 1.11.2
When doing the following:
Mypy throws the following error:
In my opinion this is valid code. The result obviously ought to be an S3Path object merged from the original S3Path object, a string, another path-like object (could be a relative PosixPath even) and something totally different, as long as it can be interpreted as a path component.
The text was updated successfully, but these errors were encountered: