Skip to content

Commit d910562

Browse files
Implement display_type() on Slice (#2365)
1 parent a82d9d9 commit d910562

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

astroid/nodes/node_classes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,6 +3564,13 @@ def pytype(self) -> Literal["builtins.slice"]:
35643564
"""
35653565
return "builtins.slice"
35663566

3567+
def display_type(self) -> Literal["Slice"]:
3568+
"""A human readable type of this node.
3569+
3570+
:returns: The type of this node.
3571+
"""
3572+
return "Slice"
3573+
35673574
def igetattr(
35683575
self, attrname: str, context: InferenceContext | None = None
35693576
) -> Iterator[SuccessfulInferenceResult]:

0 commit comments

Comments
 (0)