Koudai Aono

Results 598 comments of Koudai Aono

@xyxz-web I'm sorry for the late reply. This plugin doesn't send any data to an external endpoint. The plugin inputs the source code to your local ruff command via stdin.

@simonpercivall Thank you for creating the issue. I can't reproduce the problem. Could you please share the ruff config like pyproject.toml?

@simonpercivall Thank you for sharing the information. I tested your config and examples. But I can't represent the problem :(

@simonpercivall > I do wonder, is the plugin getting the changed text back or running ruff to fix the files directly? If the latter, PyCharm invokes the plugin's method with...

The function doesn't have the type-hint for `{genre}` ```python def print_book(title: str, author: str): """Prints the title and author of a {genre} book.""" print(f"{title} by {author}") ``` Also, Does this...

> Also, it looks like the tool in your snippet would then require that all tools share the same param spec as the main function, which may not necessarily be...

> In this example, we call print_book("fantasy") to get the dynamic tool definition, but now the function is actually named inner and not print_book. This can't be the interface. I...

I tested it. pyright works fine. But, mypy doesn't work correctly. ```python ToolTemplateP = ParamSpec("ToolTemplateP") ToolTemplateT = TypeVar("ToolTemplateT", bound=ToolTemplate) OpenAIToolT = TypeVar("OpenAIToolT", bound=OpenAITool) def dynamic_tool( template: Callable[ToolTemplateP, ToolTemplateT] ) ->...

I think that's good. If you really want to support mypy, you could create a mypy plugin like pydantic and customise mypy. I think I sent a PR for a...

@willbakst Let me check on the specifications. For example, it is easy if the fields defined in the Model of the template and the templateised variables are exactly the same,...