Skip to content

Commit 041f158

Browse files
authored
Merge pull request #758 from appwrite/fix-python-inputfile
Filename should not be optional
2 parents cdcfb4b + e4b8ddf commit 041f158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/package/input_file.py.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InputFile:
1212
return instance
1313

1414
@classmethod
15-
def from_bytes(cls, bytes, filename = None, mime_type = None):
15+
def from_bytes(cls, bytes, filename, mime_type = None):
1616
instance = cls()
1717
instance.data = bytes
1818
instance.filename = filename

0 commit comments

Comments
 (0)