Skip to content

Conversation

@felixfontein
Copy link
Contributor

f7b2e69 introduced a subtle bug: two if conditions should only match Block instances, but not instances of classes derived from Block. Changing type(...) == Block to isinstance(..., Block) makes it match derived classes as well.

Here checking exactly for Block is important; classes derived
from Block must not match.
@Kwpolska Kwpolska merged commit c5dfbd1 into master Nov 2, 2024
7 checks passed
@Kwpolska Kwpolska deleted the fix-typecheck branch November 2, 2024 20:12
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

Successfully merging this pull request may close these issues.

3 participants