From 4bd5fd85c98f598c7fee6d59ae25f35db91724a3 Mon Sep 17 00:00:00 2001 From: chiri <109767616+chirizxc@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:39:57 +0300 Subject: [PATCH 1/2] [docs] automatic copyright year update --- docs/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f5fe9d43d5f..a9300c87b0f7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,6 +16,7 @@ import os import sys +from datetime import datetime, timezone from sphinx.application import Sphinx from sphinx.util.docfields import Field @@ -51,7 +52,7 @@ # General information about the project. project = "mypy" -copyright = "2012-2022 Jukka Lehtosalo and mypy contributors" +copyright = f"2012-{datetime.now(tz=timezone.utc).year} Jukka Lehtosalo and mypy contributors" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the From 6d460c97787b65c259b5bb21c33cb2b66832200c Mon Sep 17 00:00:00 2001 From: chiri <109767616+chirizxc@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:18:32 +0300 Subject: [PATCH 2/2] [docs] update sphinx config --- docs/source/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index a9300c87b0f7..ddc9923c6c93 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,7 +16,6 @@ import os import sys -from datetime import datetime, timezone from sphinx.application import Sphinx from sphinx.util.docfields import Field @@ -52,7 +51,7 @@ # General information about the project. project = "mypy" -copyright = f"2012-{datetime.now(tz=timezone.utc).year} Jukka Lehtosalo and mypy contributors" +copyright = "2012-%Y Jukka Lehtosalo and mypy contributors" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the