-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22676Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server
Milestone
Description
Summary
hi guys
markdown code blocks rendering good but still with some invalid characters
these html codes are my tabs... if i remove them, all codes disappear
strings also being rendered with a "\" before all underscores
just updated ty before trying creating the issue and the error persists
the example from the image:
class IProductsRepository[T: Product](Protocol):
async def get(self, id: int) -> T | None: ...
class _SearchFilterOptions(TypedDict, total=False):
category: Literal["name", "acronym", "exhibition_name"]
name: str
visible: bool
sellable: bool
product_type_id: int
product_list: list[int]
page: int
page_limit: int
async def search(self, options: _SearchFilterOptions) -> list[T]:
"""
Search/list products based on the provided filter options.
Supports both specific search (by category and name) and general listing with filters.
If category and name are provided, performs specific search.
Otherwise, lists all products matching the filter criteria.
### Args:
- options (_SearchFilterOptions): The search filter options:
```python
{
"category": "name" | "acronym" | "exhibition_name" # (optional for listing),
"name": "Product Name" # (optional for listing, required if category is provided),
"visible": True | False,
"sellable": True | False,
"product_type_id": int,
"product_list": list[int],
"page": int,
"page_limit": int,
}
```
### Returns:
list[T]: A list of products that match the search/filter criteria.
"""
...Version
0.0.11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server