Skip to content

Commit

Permalink
Cannot use underscore_attrs_are_private together with default_factory (
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos authored Mar 4, 2024
1 parent b4294a1 commit fa795ab
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/langsmith/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,7 @@ class RunBase(BaseModel):
tags: Optional[List[str]] = None
"""Tags for categorizing or annotating the run."""

_lock: threading.Lock = Field(default_factory=threading.Lock)

class Config:
"""Configuration class for the schema."""

underscore_attrs_are_private = True
_lock: threading.Lock = PrivateAttr(default_factory=threading.Lock)

@property
def metadata(self) -> dict[str, Any]:
Expand Down

0 comments on commit fa795ab

Please sign in to comment.