Skip to content

Commit

Permalink
Accounting for missing typing.override in 3.11 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidnarayanan authored Sep 5, 2024
1 parent 802d736 commit 3967e98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ldp/graph/pydantic_patch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import sys
from typing import Generic, override
from typing import Generic

if sys.version_info >= (3, 12):
from typing import override
else:
from typing_extensions import override

from pydantic import BaseModel

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies = [
"torch",
"tqdm",
"transformers",
"typing-extensions; python_version <= '3.11'", # for typing.override
"usearch>=2.13", # For py.typed
]
description = "Agent framework for constructing language model agents and training on constructive tasks."
Expand Down
4 changes: 3 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3967e98

Please sign in to comment.