Fix SyncId type hint & remove debug prints
This commit is contained in:
		@@ -4,4 +4,4 @@
 | 
			
		||||
 | 
			
		||||
from typing import Tuple, Union
 | 
			
		||||
 | 
			
		||||
SyncId = Union[str, Tuple[str]]
 | 
			
		||||
SyncId = Union[str, Tuple[str, ...]]
 | 
			
		||||
 
 | 
			
		||||
@@ -31,8 +31,7 @@ class ModelStore(UserDict):
 | 
			
		||||
        if is_tuple and len(key) == 3 and key[2] == "filtered_members":
 | 
			
		||||
            model = FilteredMembers(user_id=key[0], room_id=key[1])
 | 
			
		||||
        else:
 | 
			
		||||
            model = Model(sync_id=key)
 | 
			
		||||
        print( key, model)
 | 
			
		||||
            model = Model(sync_id=key)  # type: ignore
 | 
			
		||||
 | 
			
		||||
        self.data[key] = model
 | 
			
		||||
        return model
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,6 @@ QtObject {
 | 
			
		||||
 | 
			
		||||
    function onModelItemDeleted(syncId, index, count=1) {
 | 
			
		||||
        // print("delete", syncId, index, count)
 | 
			
		||||
        print(syncId, index, count)
 | 
			
		||||
        ModelStore.get(syncId).remove(index, count)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user