Skip to content

Commit 40c9f98

Browse files
committed
python: Add type annots for 'size' & 'download_size' params in details()
1 parent 289edb8 commit 40c9f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/python/packagekit/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def data(self, data):
234234
sys.stdout.write(_to_utf8("data\t%s\n" % data))
235235
sys.stdout.flush()
236236

237-
def details(self, package_id, summary, package_license, group, desc, url, bytes, download_bytes):
237+
def details(self, package_id, summary, package_license, group, desc, url, bytes: int | None = None, download_bytes: int | None = None):
238238
'''
239239
Send 'details' signal
240240
@param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora

0 commit comments

Comments
 (0)