Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit f39c8ef

Browse files
authored
Merge pull request #36 from dym0080/master
fixed the param 'index' is redundant
2 parents a58ecf6 + 7cd136b commit f39c8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

14-it-generator/sentence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, text):
1717
def __getitem__(self, index):
1818
return self.words[index] # <2>
1919

20-
def __len__(self, index): # <3>
20+
def __len__(self): # <3>
2121
return len(self.words)
2222

2323
def __repr__(self):

0 commit comments

Comments
 (0)