Skip to content

Replace type checks with instance checks#479

Merged
sea-bass merged 1 commit intosplintered-reality:develfrom
FrankvVeelen:devel
Nov 3, 2025
Merged

Replace type checks with instance checks#479
sea-bass merged 1 commit intosplintered-reality:develfrom
FrankvVeelen:devel

Conversation

@FrankvVeelen
Copy link
Contributor

When checking for policy types, it would be more correct to check for instances. This is because instances allow for inherited classes as well, which can be useful for expanding functionality of the classes.

Copy link
Member

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change!

@sea-bass sea-bass merged commit 1496ec3 into splintered-reality:devel Nov 3, 2025
6 checks passed
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