Skip to content

Commit

Permalink
revert for TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
dontseyit committed Oct 6, 2023
1 parent 997fd18 commit 7ac3185
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ ignore = [
"D202", # blank lines allowed after function docstring
"D209", # multi-line docstring closing quote on newline
"RUF009", # do not perform function call in dataclass defaults
"PLR0913", # too many arguments
"D100", # missing docstring in public module
"N805", # first argument of a method should be named `self`
"UP007", # new syntax for union type annotations based on the `|` operator
]

line-length = 88
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ classifiers = [
"Development Status :: 1 - Planning",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: Apache Software License",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Software Development :: Libraries",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

from __future__ import annotations

from typing import Optional, Union

from pydantic import BaseModel, Field


Expand All @@ -36,10 +38,10 @@ class EmbeddingProfile(BaseModel):
source_class: str = Field(
..., description="The class to which the this embedding profile applies."
)
description: str | None = Field(
description: Optional[str] = Field(
..., description="Description of the transformed class with embeddings."
)
embedded_references: dict[str, str | EmbeddingProfile] = Field(
embedded_references: dict[str, Union[str, EmbeddingProfile]] = Field(
...,
description=(
"The references embedded into the target class."
Expand Down

0 comments on commit 7ac3185

Please sign in to comment.