The code in question is:
Code: Select all
# self.replies is created with replies: Dict[int, QtNetwork.QNetworkReply] = {}
# In another function...
self.replies[item.index] = reply
print (type(reply))
for i,r in enumerate(self.replies):
print (f"Reply {i}: {type(r)}")
Code: Select all
10:35:54 <class 'PySide2.QtNetwork.QNetworkReply'>
10:35:54 Reply 0: <class 'int'>
10:35:54 <class 'PySide2.QtNetwork.QNetworkReply'>
10:35:54 Reply 0: <class 'int'>
10:35:54 Reply 1: <class 'int'>