Modifying comments of Sequence.py

parent 1330b215
Showing with 5 additions and 5 deletions
...@@ -5,7 +5,7 @@ from typing import Optional ...@@ -5,7 +5,7 @@ from typing import Optional
class SequenceIterator: #TODO documentar class SequenceIterator: #TODO documentar
def __init__(self, children): def __init__(self, children):
""" """
Creates a sequenceIterator from a Secuence. Creates a sequenceIterator from a Sequence.
Args: Args:
children: A list with the values of the attribute children of a Sequence. children: A list with the values of the attribute children of a Sequence.
""" """
...@@ -16,7 +16,7 @@ class SequenceIterator: #TODO documentar ...@@ -16,7 +16,7 @@ class SequenceIterator: #TODO documentar
""" """
Return: Return:
The secuence where the iterator is point. The sequence where the iterator is point.
""" """
return self return self
...@@ -165,9 +165,9 @@ class Sequence: ...@@ -165,9 +165,9 @@ class Sequence:
def __len__(self): def __len__(self):
''' '''
Calculate the length of a Sequence Calculate the length of a Sequence
The length of a Secuence is the length of the children. The length of a Sequence is the length of the children.
Returns: Returns:
A number with the length of the Secuence A number with the length of the Sequence
''' '''
return len(self.children) return len(self.children)
...@@ -207,7 +207,7 @@ class Sequence: ...@@ -207,7 +207,7 @@ class Sequence:
diccionaryList: the inicial list to calculate the depth. diccionaryList: the inicial list to calculate the depth.
Returns: Returns:
A tuple that contains a number (the depth of a Secuence) and a list (the route of the max depth) A tuple that contains a number (the depth of a Sequence) and a list (the route of the max depth)
''' '''
profMax = 0 profMax = 0
rutaMax = [] rutaMax = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment