Skip to content

Commit 23d6041

Browse files
Remove code not essential to pass test
1 parent ea8d6cf commit 23d6041

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pylint/checkers/variables.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,12 +1864,6 @@ def _check_consumer(
18641864
or annotation_return
18651865
or isinstance(defstmt, nodes.Delete)
18661866
):
1867-
if (
1868-
defined_by_stmt
1869-
and isinstance(defstmt, nodes.ClassDef)
1870-
and node.parent in defstmt.type_params
1871-
):
1872-
return (VariableVisitConsumerAction.RETURN, None)
18731867
if not utils.node_ignores_exception(node, NameError):
18741868
# Handle postponed evaluation of annotations
18751869
if not (

0 commit comments

Comments
 (0)