Type hint mismatch
NoahTheDuke opened this issue · 0 comments
NoahTheDuke commented
In collection.clj, insert
, find
, etc all hint coll
as a String
: [^DB db ^String coll]
even tho their implementation calls name
on the coll
. Clojure doesn't use this type hint to change the actual implementation, but clj-kondo uses them to throw linting errors.
Given that (mg/find-one db :example {})
works, I'd like to not have any linting errors due to mismatched types. I'm willing to open a PR for this if y'all are amenable.