Skip to content

Commit

Permalink
Cleaned up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maykcaldas committed Jan 14, 2025
1 parent da9b04d commit a7bbea4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions paperqa/agents/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ def table_formatter(
table.add_column("Title", style="cyan")
table.add_column("File", style="magenta")
for obj, filename in objects:
# NOTE: Text.doc is typed as a `Doc`. But it should be a `DocDetails`.
# TODO: Change the type of Text.doc to DocDetails | Doc.
doc = cast(DocDetails, cast(Docs, obj).texts[0].doc)
try:
display_name = cast(str, doc.title)
Expand Down
1 change: 0 additions & 1 deletion paperqa/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ class DocDetails(Doc):

docname: str = AUTOPOPULATE_VALUE
dockey: DocKey = AUTOPOPULATE_VALUE

citation: str = ""
key: str | None = None
bibtex: str | None = Field(
Expand Down

0 comments on commit a7bbea4

Please sign in to comment.