From f85ae83d8fbbeb0ec08c87a0c6e9215ffd8d026c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 31 Mar 2024 13:19:45 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=8E=E2=80=8D=E2=99=80=EF=B8=8F=20Genuf?= =?UTF-8?q?lect=20to=20the=20types.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Declare ``SidebarLinksDirective.has_content`` as a class variable to align with changes made in python/typeshed#11550. Closes #14. --- jaraco/packaging/sphinx.py | 3 ++- setup.cfg | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/jaraco/packaging/sphinx.py b/jaraco/packaging/sphinx.py index 7b522c3..0cbe246 100644 --- a/jaraco/packaging/sphinx.py +++ b/jaraco/packaging/sphinx.py @@ -9,6 +9,7 @@ import os import warnings from importlib import metadata +from typing import ClassVar import docutils.statemachine import domdf_python_tools.stringlist @@ -34,7 +35,7 @@ class SidebarLinksDirective(sphinx.util.docutils.SphinxDirective): and PyPI repo. """ - has_content: bool = True + has_content: ClassVar[bool] = True option_spec = { "pypi": directives.flag, diff --git a/setup.cfg b/setup.cfg index 07e26a5..bf63175 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,8 +35,6 @@ testing = # local types-docutils - # workaround for jaraco/jaraco.packaging#14 - types-docutils<0.20.0.20240310 docs = # upstream