Bump ruff to 0.11.2 (#13757)

This commit is contained in:
Avasam
2025-04-01 17:31:38 +01:00
committed by GitHub
parent eafa274f1b
commit 19cea106f0
8 changed files with 19 additions and 21 deletions
+3 -3
View File
@@ -3,12 +3,12 @@ from _typeshed import Incomplete, ReadableBuffer, SupportsItems
from collections.abc import Callable, Iterable, Mapping
from types import BuiltinFunctionType, FunctionType, ModuleType
from typing import Any, ClassVar, NoReturn, TypeVar
from typing_extensions import Self
from yaml.error import YAMLError as YAMLError
from yaml.nodes import MappingNode as MappingNode, Node as Node, ScalarNode as ScalarNode, SequenceNode as SequenceNode
_T = TypeVar("_T")
_R = TypeVar("_R", bound=BaseRepresenter)
class RepresenterError(YAMLError): ...
@@ -25,9 +25,9 @@ class BaseRepresenter:
def represent(self, data) -> None: ...
def represent_data(self, data) -> Node: ...
@classmethod
def add_representer(cls: type[_R], data_type: type[_T], representer: Callable[[_R, _T], Node]) -> None: ...
def add_representer(cls, data_type: type[_T], representer: Callable[[Self, _T], Node]) -> None: ...
@classmethod
def add_multi_representer(cls: type[_R], data_type: type[_T], representer: Callable[[_R, _T], Node]) -> None: ...
def add_multi_representer(cls, data_type: type[_T], representer: Callable[[Self, _T], Node]) -> None: ...
def represent_scalar(self, tag: str, value, style: str | None = None) -> ScalarNode: ...
def represent_sequence(self, tag: str, sequence: Iterable[Any], flow_style: bool | None = None) -> SequenceNode: ...
def represent_mapping(