summaryrefslogtreecommitdiff
path: root/pylint/reporters
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-04-23 18:09:15 +0200
committerGitHub <noreply@github.com>2022-04-23 18:09:15 +0200
commitabfc2a4f4fe33c7499b008632b098399e3cf4320 (patch)
tree24d794db092b4d17b8ba985392e278b78a1557c2 /pylint/reporters
parent43b6fcc9b912c3bc8f2d9ebf08df7af1764914b8 (diff)
downloadpylint-git-abfc2a4f4fe33c7499b008632b098399e3cf4320.tar.gz
Rename remaining TypeVars (#6446)
Diffstat (limited to 'pylint/reporters')
-rw-r--r--pylint/reporters/ureports/nodes.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pylint/reporters/ureports/nodes.py b/pylint/reporters/ureports/nodes.py
index 2d96b4114..8b6bf32c6 100644
--- a/pylint/reporters/ureports/nodes.py
+++ b/pylint/reporters/ureports/nodes.py
@@ -14,9 +14,9 @@ from typing import Any, Callable, TypeVar
from pylint.reporters.ureports.base_writer import BaseWriter
-T = TypeVar("T")
-VNodeT = TypeVar("VNodeT", bound="VNode")
-VisitLeaveFunction = Callable[[T, Any, Any], None]
+_T = TypeVar("_T")
+_VNodeT = TypeVar("_VNodeT", bound="VNode")
+VisitLeaveFunction = Callable[[_T, Any, Any], None]
class VNode:
@@ -28,14 +28,14 @@ class VNode:
def __iter__(self) -> Iterator[VNode]:
return iter(self.children)
- def accept(self: VNodeT, visitor: BaseWriter, *args: Any, **kwargs: Any) -> None:
- func: VisitLeaveFunction[VNodeT] = getattr(
+ def accept(self: _VNodeT, visitor: BaseWriter, *args: Any, **kwargs: Any) -> None:
+ func: VisitLeaveFunction[_VNodeT] = getattr(
visitor, f"visit_{self.visitor_name}"
)
return func(self, *args, **kwargs)
- def leave(self: VNodeT, visitor: BaseWriter, *args: Any, **kwargs: Any) -> None:
- func: VisitLeaveFunction[VNodeT] = getattr(
+ def leave(self: _VNodeT, visitor: BaseWriter, *args: Any, **kwargs: Any) -> None:
+ func: VisitLeaveFunction[_VNodeT] = getattr(
visitor, f"leave_{self.visitor_name}"
)
return func(self, *args, **kwargs)