File tree 2 files changed +2
-7
lines changed
packages/ragbits-document-search/src/ragbits/document_search/documents
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 3
3
from pathlib import Path
4
4
from typing import Annotated , Any
5
5
6
- from deprecated import deprecated
7
6
from pydantic import BaseModel
7
+ from typing_extensions import deprecated
8
8
9
9
from ragbits .core .sources .base import Source , SourceDiscriminator
10
10
from ragbits .core .sources .local import LocalFileSource
@@ -77,7 +77,7 @@ async def fetch(self) -> "Document":
77
77
return Document .from_document_meta (self , local_path )
78
78
79
79
@classmethod
80
- @deprecated (reason = "Use from_literal() instead" , version = "1.1 " )
80
+ @deprecated ("Use from_literal() instead" )
81
81
def create_text_document_from_literal (cls , content : str ) -> "DocumentMeta" :
82
82
"""
83
83
Create a text document from a literal content. This method is deprecated, use from_literal() instead.
Original file line number Diff line number Diff line change @@ -111,11 +111,6 @@ mypy_path = [
111
111
]
112
112
exclude = [" scripts" , " examples" ]
113
113
114
- [[tool .mypy .overrides ]]
115
- module = " ragbits.*"
116
- ignore_missing_imports = false
117
- disallow_untyped_defs = true
118
-
119
114
[tool .ruff ]
120
115
exclude = [" .venv" ]
121
116
extend-include = [" *.ipynb" ]
You can’t perform that action at this time.
0 commit comments