diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-04-03 21:45:44 +0200 |
---|---|---|
committer | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2023-04-03 22:22:40 +0200 |
commit | 953c13b0759d7a9ff86a34248e55a1219165390d (patch) | |
tree | 8788cc7c3f76cac01f24c4fc72941946596407c5 /astroid/constraint.py | |
parent | 606fa3ea2edb0b18883e223cb6b7fe48daa6ce6a (diff) | |
download | astroid-git-953c13b0759d7a9ff86a34248e55a1219165390d.tar.gz |
Fix usage of ``Self``
Diffstat (limited to 'astroid/constraint.py')
-rw-r--r-- | astroid/constraint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/constraint.py b/astroid/constraint.py index 6186f204..6e23b592 100644 --- a/astroid/constraint.py +++ b/astroid/constraint.py @@ -33,7 +33,7 @@ class Constraint(ABC): @classmethod @abstractmethod def match( - cls: type[Self], node: _NameNodes, expr: nodes.NodeNG, negate: bool = False + cls, node: _NameNodes, expr: nodes.NodeNG, negate: bool = False ) -> Self | None: """Return a new constraint for node matched from expr, if expr matches the constraint pattern. @@ -53,7 +53,7 @@ class NoneConstraint(Constraint): @classmethod def match( - cls: type[Self], node: _NameNodes, expr: nodes.NodeNG, negate: bool = False + cls, node: _NameNodes, expr: nodes.NodeNG, negate: bool = False ) -> Self | None: """Return a new constraint for node matched from expr, if expr matches the constraint pattern. |