Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mypy --strict fails on Karton tests #201

Open
kazet opened this issue Nov 29, 2022 · 0 comments
Open

Mypy --strict fails on Karton tests #201

kazet opened this issue Nov 29, 2022 · 0 comments

Comments

@kazet
Copy link
Member

kazet commented Nov 29, 2022

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant