CERT-Polska / karton

Distributed malware processing framework based on Python, Redis and S3.
https://karton-core.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
392 stars 45 forks source link

Mypy --strict fails on Karton tests #201

Open kazet opened 1 year ago

kazet commented 1 year ago

When I create a test inheriting from KartonTestCase:


class ScannerTest(KartonTestCase):
    karton_class = Scanner

mypy returns the following error:

error: Incompatible types in assignment (expression has type "Type[Scanner]", base class "KartonTestCase" defined the type as "None") [assignment]