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

LaTeX plugin: fix type check #448

Merged
merged 3 commits into from
Nov 2, 2024
Merged

LaTeX plugin: fix type check #448

merged 3 commits into from
Nov 2, 2024

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.

2 participants