Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hint mismatch #210

Open
NoahTheDuke opened this issue Nov 24, 2021 · 0 comments
Open

Type hint mismatch #210

NoahTheDuke opened this issue Nov 24, 2021 · 0 comments

Comments

@NoahTheDuke
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant