diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2022-07-02 11:04:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 11:04:31 +0100 |
commit | 13fb17468e547b18b3b8d6b5616ef3d1eb23ac98 (patch) | |
tree | 5df664df0036b99aba2edf2e5c0c0c490fcb09cf /sphinx/domains/cpp.py | |
parent | 8d99168794ab8be0de1e6281d1b76af8177acd3d (diff) | |
download | sphinx-git-13fb17468e547b18b3b8d6b5616ef3d1eb23ac98.tar.gz |
Remove redundant static typing casts (#10612)
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r-- | sphinx/domains/cpp.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 980c4db5c..9cfb68ca9 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -2,7 +2,7 @@ import re from typing import (Any, Callable, Dict, Generator, Iterator, List, Optional, Tuple, TypeVar, - Union, cast) + Union) from docutils import nodes from docutils.nodes import Element, Node, TextElement, system_message @@ -7519,7 +7519,6 @@ class AliasTransform(SphinxTransform): def apply(self, **kwargs: Any) -> None: for node in self.document.findall(AliasNode): - node = cast(AliasNode, node) sig = node.sig parentKey = node.parentKey try: |