Closed saumikn closed 2 years ago
Seems like MyPy wasn't too upset about this, so I've added this change in b431412 🙂 (Note that the CI pipeline fails due to issues unrelated to this change). Will be released in the next TinyDB version
Oh, turns out I was referring to a line which was already fixed in fcb1a86, just that that change hasn't been released yet so it never showed up on my end. Thanks for the quick reply!
Using the VS Code Pylance type checker, I'm unable to run queries without giving me type errors. For example, just running
db.search(where("field") == field)
gives me the error:I can fix this if I go into
queries.QueryLike
, and replacedef __hash__(self): ...
withdef __hash__(self) -> int: ...
If we made this change, would it break other code (e.g. MyPy) in any way?