Skip to content

Add type hints to MCP main.py local variables#293

Open
ykd007 wants to merge 1 commit into
msoedov:mainfrom
ykd007:fix/mcp-type-hints
Open

Add type hints to MCP main.py local variables#293
ykd007 wants to merge 1 commit into
msoedov:mainfrom
ykd007:fix/mcp-type-hints

Conversation

@ykd007
Copy link
Copy Markdown
Contributor

@ykd007 ykd007 commented May 15, 2026

Addresses #198.

The url and payload local variables inside each tool function in agentic_security/mcp/main.py were left without annotations. Added explicit : str and : dict hints so IDEs and static analysers (mypy, pyright) can track the types without having to infer them from the right-hand side.

No behaviour change — strictly an annotation improvement.

The url and payload variables inside each tool function were untyped.
Annotated them explicitly so IDEs and type checkers can follow the
data flow without having to infer from context.

Closes msoedov#198
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

Successfully merging this pull request may close these issues.

1 participant