mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-25 16:05:58 +03:00
[PR #150] feat: add LSP client for Python type information extraction #268
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/iam-policy-autopilot#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/awslabs/iam-policy-autopilot/pull/150
Author: @adpaco-aws
Created: 2/13/2026
Status: 🔄 Open
Base:
main← Head:feat-lsp-client-impl📝 Commits (1)
cd5c98afeat: add LSP client for Python type information extraction📊 Changes
7 files changed (+2027 additions, -6 deletions)
View changed files
📝
iam-policy-autopilot-policy-generation/Cargo.toml(+6 -6)📝
iam-policy-autopilot-policy-generation/src/lib.rs(+3 -0)➕
iam-policy-autopilot-policy-generation/src/lsp/error.rs(+36 -0)➕
iam-policy-autopilot-policy-generation/src/lsp/mod.rs(+819 -0)➕
iam-policy-autopilot-policy-generation/src/lsp/protocol.rs(+680 -0)➕
iam-policy-autopilot-policy-generation/src/lsp/test_utils.rs(+113 -0)➕
iam-policy-autopilot-policy-generation/tests/lsp_integration_tests.rs(+370 -0)📄 Description
Issue #, if available: N/A
Description of changes:
Implements a standalone LSP client for the ty Python type checker to enable type information extraction from Python code. This client will support future enhancements to Python SDK call extraction by providing accurate type information for boto3 clients and method calls.
Changes
TyLspClientfor managing ty server lifecycle and querying type information#[serial]attributeis_lsp_ready()checking both ty and boto3-stubs availabilityNotes
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.