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

Fix a bug for dunder methods inference of function objects #874

Merged
merged 1 commit into from Dec 30, 2020

Conversation

PCManticore
Copy link
Contributor

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

The inferred dunder methods of functions (__delitem__ et al.) did not have a parent set on the inferred object, which results in all sorts of issues on pylint side.

Type of Changes

Type
🐛 Bug fix

Related Issue

Fixes #819

@PCManticore PCManticore merged commit 00ccda6 into master Dec 30, 2020
@PCManticore PCManticore deleted the fix-crash-in-dunder-inference branch December 30, 2020 10:47
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.

AttributeError: 'NoneType' object has no attribute 'frame'
1 participant