Skip to content

Commit

Permalink
Пофиксил линтер
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelarg committed Oct 16, 2024
1 parent 8dbf455 commit fc4db18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _model_to_schema(model: Type[BaseModel]) -> dict:


def _convert_return_schema(
return_model: Type[BaseModel] | dict[str, Any] | None,
return_model: Optional[Union[Type[BaseModel], dict[str, Any]]],
) -> Dict[str, Any]:
if not return_model:
return {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Union

from pydantic.json_schema import GenerateJsonSchema, JsonSchemaValue, core_schema


class GigaChatJsonSchema(GenerateJsonSchema):
def field_is_required(
self,
field: core_schema.ModelField
| core_schema.DataclassField
| core_schema.TypedDictField,
field: Union[core_schema.ModelField, core_schema.DataclassField, core_schema.TypedDictField],

Check failure on line 9 in libs/langchain_gigachat/langchain_gigachat/utils/pydantic_generator.py

View workflow job for this annotation

GitHub Actions / cd libs/langchain_gigachat / - / make lint #3.11

Ruff (E501)

langchain_gigachat/utils/pydantic_generator.py:9:89: E501 Line too long (101 > 88)
total: bool,
) -> bool:
"""
Expand Down

0 comments on commit fc4db18

Please sign in to comment.