Skip to content

[pysrc2cpg] Fix for from . import Bar #5604

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

Merged
merged 2 commits into from
Jul 24, 2025
Merged

[pysrc2cpg] Fix for from . import Bar #5604

merged 2 commits into from
Jul 24, 2025

Conversation

fabsx00
Copy link
Contributor

@fabsx00 fabsx00 commented Jul 24, 2025

In Python, it is possible to create imports of the following form:

from . import bar

Prior to this commit, this would lead to an imported entity of ..bar. Now, it is $package.bar, where $package is the package of the current module.

@fabsx00 fabsx00 changed the title [WIP] [pysrc2cpg] Fix for from . import Bar [pysrc2cpg] Fix for from . import Bar Jul 24, 2025
@fabsx00 fabsx00 requested a review from tuxology July 24, 2025 13:56
@fabsx00 fabsx00 merged commit 4b0bacb into master Jul 24, 2025
8 checks passed
@max-leuthaeuser max-leuthaeuser deleted the fabs/pyimpfix branch July 25, 2025 12:26
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