Skip to content

Commit ca02b8d

Browse files
committed
fix types
1 parent b756787 commit ca02b8d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/ragbits-document-search/src/ragbits/document_search/documents/document.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from pathlib import Path
44
from typing import Annotated, Any
55

6-
from deprecated import deprecated
76
from pydantic import BaseModel
7+
from typing_extensions import deprecated
88

99
from ragbits.core.sources.base import Source, SourceDiscriminator
1010
from ragbits.core.sources.local import LocalFileSource
@@ -77,7 +77,7 @@ async def fetch(self) -> "Document":
7777
return Document.from_document_meta(self, local_path)
7878

7979
@classmethod
80-
@deprecated(reason="Use from_literal() instead", version="1.1")
80+
@deprecated("Use from_literal() instead")
8181
def create_text_document_from_literal(cls, content: str) -> "DocumentMeta":
8282
"""
8383
Create a text document from a literal content. This method is deprecated, use from_literal() instead.

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ mypy_path = [
111111
]
112112
exclude = ["scripts", "examples"]
113113

114-
[[tool.mypy.overrides]]
115-
module = "ragbits.*"
116-
ignore_missing_imports = false
117-
disallow_untyped_defs = true
118-
119114
[tool.ruff]
120115
exclude = [".venv"]
121116
extend-include = ["*.ipynb"]

0 commit comments

Comments
 (0)