src/table_validator/desktop/validation_drop_target.py
def is_accepted(self, e):
        """Check a file based on its MIME type."""
        accept = any(
            e.mimeData().hasFormat(i)
            for i in self.accepted_formats
        )

        if accept:
            e.accept()
        else:
            e.ignore()
Check a file based on its MIME type.
Check a file based on its MIME type.
Check a file based on its MIME type .
def is_accepted(self, e):
        accept = any(
            e.mimeData().hasFormat(i)
            for i in self.accepted_formats
        )
        if accept:
            e.accept()
        else:
            e.ignore()
def is_accepted ( self , e ) : accept = any ( e . mimeData ( ) . hasFormat ( i ) for i in self . accepted_formats ) if accept : e . accept ( ) else : e . ignore ( )
Check a file based on its MIME type.
Check a file based on its MIME type .
"""Check a file based on its MIME type."""
self
e