[ty] Initial implementation of signature help provider by UnboundVariable · Pull Request #19194 · astral-sh/ruff (original) (raw)
This PR includes:
- Core implementation of signature help provider
- Modification to the display code for Signature that allows a signature string to be broken into text ranges that correspond to each parameter in the signature
- Moved the ArgumentMatcher logic (which was previously part of the bind module) into its own module so it can be used independently of method binding
- Augmentatation of Signature struct so it can track the Definition for a signature when available; this allows us to find the docstring associated with the signature
- Utility functions for parsing parameter documentation from three popular docstring formats (Google, NumPy and reST)
Co-authored-by: Micha Reiser micha@reiser.io
UnboundVariable added 3 commits
…re_help
- 'main' of https://github.com/astral-sh/ruff: (34 commits)
[docs] add capital one to who's using ruff (astral-sh#19248)
[
pyupgrade] Keyword arguments insupershould suppress theUP008fix (astral-sh#19131) [flake8-use-pathlib] Add autofixes forPTH100,PTH106,PTH107,PTH108,PTH110,PTH111,PTH112,PTH113,PTH114,PTH115,PTH117,PTH119,PTH120(astral-sh#19213) [ty] Do not runmypy_primer.yamlwhen all changed files are Markdown files (astral-sh#19244) [flake8-bandit] Make example error out-of-the-box (S412) (astral-sh#19241) [pydoclint] Make example error out-of-the-box (DOC501) (astral-sh#19218) [ty] Add "kind" to completion suggestions [ty] Add type information toall_membersAPI [ty] Expand API ofall_membersto return a struct [ty] Ecosystem analyzer PR comment workflow (astral-sh#19237) [ty] Mergety_macrosintoruff_macros(astral-sh#19229) [ty] FixClassLiteral.into_callablefor dataclasses (astral-sh#19192) [ty]dataclasses.fieldsupport (astral-sh#19140) [ty] Fix panic for attribute expressions with empty value (astral-sh#19069) [ty] ReturnCallableTypefromBoundMethodType.into_callable_type(astral-sh#19193) [flake8-bugbear] Support non-context-manager calls inB017(astral-sh#19063) [ty] Improved diagnostic for reassignments ofFinalsymbols (astral-sh#19214) [ty] Use full range for assignment definitions (astral-sh#19211) [pylint] Updatemissing-maxsplit-argdocs and error to suggest proper usage (PLC0207) (astral-sh#18949) [ty] Addset -euto mypy-primer script (astral-sh#19212) ...
Conflicts:
crates/ty_python_semantic/src/types/class.rs
UnboundVariable added 5 commits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})