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

Miscellaneous/usability fixes #270

Merged
merged 4 commits into from
Aug 15, 2023
Merged

Miscellaneous/usability fixes #270

merged 4 commits into from
Aug 15, 2023

Conversation

elijahbenizzy
Copy link
Collaborator

Solves #238 -- this should make it marginally easier to debug.

[Short description explaining the high-level reason for the pull request]

Changes

How I tested this

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

Solves #238 -- this should make it marginally easier to debug.
@elijahbenizzy elijahbenizzy force-pushed the misc-fixes branch 3 times, most recently from 195fddb to aaf3b58 Compare August 15, 2023 21:02
See #188 for logic. Design is to pass, as the error message will be more
helpful later on (when the specified node does not exist)
@elijahbenizzy elijahbenizzy changed the title Adds general exception logging to resolve_nodes Miscellaneous/usability fixes Aug 15, 2023
@elijahbenizzy elijahbenizzy marked this pull request as ready for review August 15, 2023 21:46
@elijahbenizzy elijahbenizzy requested a review from skrawcz August 15, 2023 21:47
Comment on lines 23 to 25
if not inspect.isclass(base_type) or not inspect.isclass(candidate_type):
return False
return issubclass(candidate_type, base_type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should have a unit test for this, no?

@elijahbenizzy elijahbenizzy force-pushed the misc-fixes branch 2 times, most recently from ab6e9ad to bdb4c66 Compare August 15, 2023 23:28
Inspired by #42. Note that we make the design decision to not error out
when we do a subclass check against generics. Rather, we return false.
We then change the error message to show how they can proceed if their
subclass check returns False.
@elijahbenizzy elijahbenizzy merged commit 73822f1 into main Aug 15, 2023
@elijahbenizzy elijahbenizzy deleted the misc-fixes branch August 15, 2023 23:51
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