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
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.
The text was updated successfully, but these errors were encountered:
In collection.clj,
insert
,find
, etc all hintcoll
as aString
:[^DB db ^String coll]
even tho their implementation callsname
on thecoll
. 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.The text was updated successfully, but these errors were encountered: