Skip to content

Commit 19a0759

Browse files
committed
The latest flake8 disallows to use a name l
1 parent dd017dc commit 19a0759

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nirum/datastructures.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,26 @@ def __repr__(self):
5353

5454
class List(collections.Sequence):
5555

56-
def __init__(self, l):
57-
self.l = l
56+
def __init__(self, items):
57+
self.items = items
5858

5959
def __getitem__(self, index):
60-
return self.l[index]
60+
return self.items[index]
6161

6262
def __len__(self):
63-
return len(self.l)
63+
return len(self.items)
6464

6565
def __contains__(self, item):
66-
return item in self.l
66+
return item in self.items
6767

6868
def __iter__(self):
69-
return iter(self.l)
69+
return iter(self.items)
7070

7171
def index(self, item):
72-
return self.l.index(item)
72+
return self.items.index(item)
7373

7474
def count(self, item):
75-
return self.l.count(item)
75+
return self.items.count(item)
7676

7777

7878
map_type = Map

0 commit comments

Comments
 (0)