Skip to content

Commit e05ac83

Browse files
committed
prefer List over list
1 parent 01b11ed commit e05ac83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/etc/lldb_providers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def num_children(self) -> int:
108108
return 0
109109

110110
def get_child_index(self, name: str) -> int:
111-
return None
111+
return -1
112112

113113
def get_child_at_index(self, index: int) -> SBValue:
114114
return None

src/etc/rust_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import List
12
import re
23

34

@@ -85,12 +86,11 @@ class RustType(object):
8586
}
8687

8788

88-
def is_tuple_fields(fields: list) -> bool:
89-
# type: (list) -> bool
89+
def is_tuple_fields(fields: List) -> bool:
9090
return all(TUPLE_ITEM_REGEX.match(str(field.name)) for field in fields)
9191

9292

93-
def classify_struct(name: str, fields: list) -> str:
93+
def classify_struct(name: str, fields: List) -> str:
9494
if len(fields) == 0:
9595
return RustType.EMPTY
9696

@@ -111,7 +111,7 @@ def classify_struct(name: str, fields: list) -> str:
111111
return RustType.STRUCT
112112

113113

114-
def classify_union(fields: list) -> str:
114+
def classify_union(fields: List) -> str:
115115
if len(fields) == 0:
116116
return RustType.EMPTY
117117

0 commit comments

Comments
 (0)