@@ -219,7 +219,8 @@ class Meta:
219219
220220    def  _get_chunked_blob (self , mode = None , prefetch = False , prefetch_to = None , delete = True ):
221221        return  ChunkedFileBlobIndexWrapper (
222-             self .FILE_BLOB_INDEX_MODEL .objects .filter (file = self )
222+             # TODO: file blob inheritance hierarchy is unsound 
223+             self .FILE_BLOB_INDEX_MODEL .objects .filter (file = self )  # type: ignore[misc] 
223224            .select_related ("blob" )
224225            .order_by ("offset" ),
225226            mode = mode ,
@@ -295,7 +296,8 @@ def putfile(self, fileobj, blob_size=DEFAULT_BLOB_SIZE, commit=True, logger=noop
295296            blob_fileobj  =  ContentFile (contents )
296297            blob  =  self .FILE_BLOB_MODEL .from_file (blob_fileobj , logger = logger )
297298            results .append (
298-                 self .FILE_BLOB_INDEX_MODEL .objects .create (file = self , blob = blob , offset = offset )
299+                 # TODO: file blob inheritance hierarchy is unsound 
300+                 self .FILE_BLOB_INDEX_MODEL .objects .create (file = self , blob = blob , offset = offset )  # type: ignore[misc] 
299301            )
300302            offset  +=  blob .size 
301303        self .size  =  offset 
@@ -334,7 +336,8 @@ def assemble_from_file_blob_ids(self, file_blob_ids, checksum):
334336            offset  =  0 
335337            for  blob  in  file_blobs :
336338                try :
337-                     self .FILE_BLOB_INDEX_MODEL .objects .create (file = self , blob = blob , offset = offset )
339+                     # TODO: file blob inheritance hierarchy is unsound 
340+                     self .FILE_BLOB_INDEX_MODEL .objects .create (file = self , blob = blob , offset = offset )  # type: ignore[misc] 
338341                except  IntegrityError :
339342                    # Most likely a `ForeignKeyViolation` like `SENTRY-11P5`, because 
340343                    # the blob we want to link does not exist anymore 
0 commit comments