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

Use issubclass instead of isinstance to compare SourceGenerator in to_source #164

Merged
merged 7 commits into from Dec 8, 2019

Conversation

willcrichton
Copy link
Contributor

I believe this is just a bug. If source_generator_class is a class, then isinstance is not appropriate since it's a class, not a class instance/object.

Copy link
Owner

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Could you also fix the failed test and add a release note to docs/changelog.rst?

astor/code_gen.py Outdated Show resolved Hide resolved
@willcrichton
Copy link
Contributor Author

Should I make a new section (0.9.0) in the changelog for the release note?

@berkerpeksag
Copy link
Owner

Should I make a new section (0.9.0) in the changelog for the release note?

Yes, that would be great! Actually, we can even make it 0.8.1 for now.

@berkerpeksag
Copy link
Owner

BTW, I just merged a PR that adds a new section for 0.8.1. You can now rebase your branch and add a new entry for this PR.

@berkerpeksag berkerpeksag merged commit 51c9e70 into berkerpeksag:master Dec 8, 2019
@berkerpeksag
Copy link
Owner

Thank you!

isidentical pushed a commit to isidentical/astor that referenced this pull request Dec 9, 2019
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.

None yet

2 participants