Typing, minor

This commit is contained in:
Michael Panchenko
2025-05-29 23:03:32 +02:00
parent 5bd9c5b69e
commit 37ccf785e7
+1 -1
View File
@@ -163,7 +163,7 @@ def create_mcp_server_and_agent(
class ProjectType(click.ParamType):
name = "[PROJECT_NAME|PROJECT_PATH]"
def convert(self, value, param, ctx):
def convert(self, value: str, param: click.Parameter | None, ctx: click.Context | None) -> str:
path = Path(value).resolve()
if path.exists() and path.is_dir():
return str(path) # Valid path