Skip to content

Commit c131847

Browse files
authored
Allow using tuples as well as lists for StrArray
1 parent 083ecd8 commit c131847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygit2/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, l):
8686
self.array = ffi.NULL
8787
return
8888

89-
if not isinstance(l, list):
89+
if not isinstance(l, (list, tuple)):
9090
raise TypeError("Value must be a list")
9191

9292
strings = [None] * len(l)

0 commit comments

Comments
 (0)