ruff
fab7d820 - [red-knot] Add `__init__` arguments check when doing `try_call` on a class literal (#16512)

Commit
313 days ago
[red-knot] Add `__init__` arguments check when doing `try_call` on a class literal (#16512) ## Summary * Addresses #16511 for simple cases where only `__init__` method is bound on class or doesn't exist at all. * fixes a bug with argument counting in bound method diagnostics Caveats: * No handling of `__new__` or modified `__call__` on metaclass. * This leads to a couple of false positive errors in tests ## Test Plan - A couple new cases in mdtests - cargo nextest run -p red_knot_python_semantic --no-fail-fast --------- Co-authored-by: Carl Meyer <carl@astral.sh> Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
Author
Parents
Loading