From 1a9823dce5b293999933810489dfd1b06fa27eef Mon Sep 17 00:00:00 2001 From: Viktor Kerkez Date: Thu, 2 Dec 2021 15:29:57 +0000 Subject: [PATCH 1/2] Publication date can be null. --- paperswithcode/models/paper.py | 4 ++-- paperswithcode/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paperswithcode/models/paper.py b/paperswithcode/models/paper.py index d758859..eb4dc52 100644 --- a/paperswithcode/models/paper.py +++ b/paperswithcode/models/paper.py @@ -18,7 +18,7 @@ class Paper(TeaClientModel): title (str): Paper title. abstract (str): Paper abstract. authors (List[str]): List of paper authors. - published (date): Paper publication date. + published (date, optional): Paper publication date. conference (str, optional): ID of the conference in which the paper was published. conference_url_abs (str, optional): URL to the conference paper page. @@ -35,7 +35,7 @@ class Paper(TeaClientModel): title: str abstract: str authors: List[str] - published: date + published: Optional[date] conference: Optional[str] conference_url_abs: Optional[str] conference_url_pdf: Optional[str] diff --git a/paperswithcode/version.py b/paperswithcode/version.py index a78ed20..73a9879 100644 --- a/paperswithcode/version.py +++ b/paperswithcode/version.py @@ -16,5 +16,5 @@ def __repr__(self): ) -version = Version(0, 3, 0) +version = Version(0, 3, 1) __version__ = str(version) From 1084d32e45945f697a38a3e7392b1772aa97749d Mon Sep 17 00:00:00 2001 From: Viktor Kerkez Date: Thu, 2 Dec 2021 15:33:45 +0000 Subject: [PATCH 2/2] Update documentation with new models. --- docs/api/models/author.md | 8 ++++++++ docs/api/models/index.md | 4 +++- docs/api/models/paper_repo.md | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/api/models/author.md create mode 100644 docs/api/models/paper_repo.md diff --git a/docs/api/models/author.md b/docs/api/models/author.md new file mode 100644 index 0000000..f1973d1 --- /dev/null +++ b/docs/api/models/author.md @@ -0,0 +1,8 @@ +```eval_rst +Author Models +============= + +.. automodule:: paperswithcode.models.author + :members: + :no-undoc-members: +``` diff --git a/docs/api/models/index.md b/docs/api/models/index.md index d525f0b..66a64d2 100644 --- a/docs/api/models/index.md +++ b/docs/api/models/index.md @@ -5,10 +5,12 @@ :maxdepth: 3 paper.md + repository.md + paper_repo.md + author.md conference.md task.md dataset.md method.md - repository.md evaluation.md ``` \ No newline at end of file diff --git a/docs/api/models/paper_repo.md b/docs/api/models/paper_repo.md new file mode 100644 index 0000000..2b404f7 --- /dev/null +++ b/docs/api/models/paper_repo.md @@ -0,0 +1,8 @@ +```eval_rst +Paper Repository Models +======================= + +.. automodule:: paperswithcode.models.paper_repo + :members: + :no-undoc-members: +```