Remove unused function
get_type_from_union_literal() from util.py
This commit is contained in:
parent
379baa579e
commit
27d5cb5c64
1 changed files with 0 additions and 8 deletions
|
|
@ -473,11 +473,3 @@ def build_loader_repr_from_documents(documents: List[Document]) -> str:
|
||||||
\nAvg. Document Length (characters): {int(avg_length)}
|
\nAvg. Document Length (characters): {int(avg_length)}
|
||||||
Documents: {documents[:3]}..."""
|
Documents: {documents[:3]}..."""
|
||||||
return "0 documents"
|
return "0 documents"
|
||||||
|
|
||||||
|
|
||||||
def get_type_from_union_literal(union_literal: str) -> str:
|
|
||||||
# if types are literal strings
|
|
||||||
# the type is a string
|
|
||||||
if "Literal" in union_literal:
|
|
||||||
return "str"
|
|
||||||
return union_literal
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue