Skip to content

Commit

Permalink
🧎‍♀️ Genuflect to the types.
Browse files Browse the repository at this point in the history
Declare ``SidebarLinksDirective.has_content`` as a class variable to align with changes made in python/typeshed#11550. Closes #14.
  • Loading branch information
jaraco committed Mar 31, 2024
1 parent 4e15eef commit f85ae83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jaraco/packaging/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os
import warnings
from importlib import metadata
from typing import ClassVar

import docutils.statemachine
import domdf_python_tools.stringlist
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ testing =

# local
types-docutils
# workaround for jaraco/jaraco.packaging#14
types-docutils<0.20.0.20240310

docs =
# upstream
Expand Down

0 comments on commit f85ae83

Please sign in to comment.