Skip to content

fix: mro_trait can be unbound when the class is not in mro#824

Merged
blink1073 merged 1 commit intoipython:mainfrom
maartenbreddels:fix_mro_trait_unbound
Jan 8, 2023
Merged

fix: mro_trait can be unbound when the class is not in mro#824
blink1073 merged 1 commit intoipython:mainfrom
maartenbreddels:fix_mro_trait_unbound

Conversation

@maartenbreddels
Copy link
Contributor

Closes #823

Not so happy that it doesn't include a test yet, and I think a linter should have picked up this mistake. @blink1073 do you know why CI didn't see this lint issue?

@blink1073
Copy link
Contributor

Unbound locals are apparently tricky to catch with a linter, I found issues on both mypy and pyflakes where they punt on it.

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thanks! I'll release this tomorrow.

@blink1073 blink1073 merged commit 1881420 into ipython:main Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in version 5.8.0

2 participants