summaryrefslogtreecommitdiff
path: root/doc/development/tutorials/examples/autodoc_intenum.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:43:59 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-01 20:48:39 +0000
commit14a9289d780240bbce78ad3640e8e1b1b12df43f (patch)
treefd753f5b0f8c7053923b78c8fef2b90b60f9c7fa /doc/development/tutorials/examples/autodoc_intenum.py
parent26f79b0d2dd88b353ac65623897bdfbe8bc07cab (diff)
downloadsphinx-git-14a9289d780240bbce78ad3640e8e1b1b12df43f.tar.gz
Use PEP 604 types
Diffstat (limited to 'doc/development/tutorials/examples/autodoc_intenum.py')
-rw-r--r--doc/development/tutorials/examples/autodoc_intenum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/tutorials/examples/autodoc_intenum.py b/doc/development/tutorials/examples/autodoc_intenum.py
index 67b5c3f70..67955600f 100644
--- a/doc/development/tutorials/examples/autodoc_intenum.py
+++ b/doc/development/tutorials/examples/autodoc_intenum.py
@@ -1,7 +1,7 @@
from __future__ import annotations
from enum import IntEnum
-from typing import Any, Optional
+from typing import Any
from docutils.statemachine import StringList
@@ -30,7 +30,7 @@ class IntEnumDocumenter(ClassDocumenter):
self.add_line(' :final:', self.get_sourcename())
def add_content(self,
- more_content: Optional[StringList],
+ more_content: StringList | None,
no_docstring: bool = False
) -> None: