[lsp] a parameter called `cls` is incorrectly treated as bound even in a regular function call
Describe the Bug
def f(cls, ops):...
a=1
c=1
f(a,c)
Sandbox Link
https://pyrefly.org/sandbox/?project=v2.pVVNS8QwEP0rAz1shX7gdcGbgt4Ekb14yabTpthNSptY_fe-SXari7iXhdJDm5nMvHnvzX-WmdGOB-0OTN6RN0zPqVd6SacKfATT8Cig0QGhjBbDE9OXC7AoS8uESYBURuEjgmhg1E5q74Jfzdgir4BWIV5SPEqGGADXCFAptaxAQ_iOa9OVxzIxiYxK-LQHUdVQ-l5qBRdJG9bvkr1lbvZKY-hy8hVc_WWV4CY6gwRGEVdvW0yIm5gBrJAA_hyxAg5sPS29NxGFp_uHn4q8UfjFNIcx2lTOVVeRCmL84jDSfudK70oIQsYTnd2IcxfEXoOlcs9OgIoITeGEB7pvmBJBADpwAqwTOOwWbILVKXI9wH_dON9sqwoYqrtbuJy82lwVcsFflmbrKI9I4i7QuwvYAihQJoEFwGS8H-dtXZ_C3dTVbOvG6bk-i6hJBKk-VB93y3k6FJe20Ju9Rh6bpI7NJXFsRBs4cZHv3w
(Only applicable for extension issues) IDE Information
No response
Oh that's sort of a funny bug. I wasn't able to reproduce it in the sandbox, but I could in VSCode. If I type f(, the tooltip highlights ops rather than cls - seems like we probably have a "skip parameter named cls" hard-coded somewhere.
#claim
@Quaden2307 you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉
@rchen152 This looks like it was fixed on main by #5688. I added a test with def f(cls, ...) and it passes. I'd be down to open a PR with the test if useful, otherwise please confirm that this can be closed.