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

Force Party instantiation to be made from Families #560

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

calum-chamberlain
Copy link
Member

What does this PR do?

Raises an assertion error if the wrong type is provided to Party on init

Why was it initiated? Any relevant Issues?

I frequently accidentally instantiate a party with a string. This should not be allowed.

PR Checklist

- [ ] develop base branch selected?

  • This PR is not directly related to an existing issue (which has no PR yet).
  • All tests still pass.
  • Any new features or fixed regressions are be covered via new tests.
  • Any new or changed features have are fully documented.
  • Significant changes have been added to CHANGES.md.
  • First time contributors have added your name to CONTRIBUTORS.md.

I frequently accidentally instantiate a party with a string. This should not be allowed.
@calum-chamberlain calum-chamberlain merged commit 4e64935 into master Dec 11, 2024
15 of 17 checks passed
@calum-chamberlain calum-chamberlain deleted the party-init branch December 11, 2024 02:17
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.

1 participant