TypeError: unhashable type: 'PosixPath' when collecting conftest #8330
Labels
status: needs information
reporter needs to provide more information; can be closed after 2 or more weeks of inactivity
topic: collection
related to the collection phase
Environment details:
I'm facing a completely inscrutable error which I cannot for the life of me figure out. If I have
pathlib.Path
as a type hint on a class, I get the following error from pytest:I have searched the issues list and found a similar error showed up in #6925, but I do not use xdist. If i replace type hints of
Path
withos.PathLike
the problem is "fixed". If i usepathlib.PurePath
, I get this error:The text was updated successfully, but these errors were encountered: