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 import multi module #24

Merged
merged 1 commit into from
May 25, 2024
Merged

Fix import multi module #24

merged 1 commit into from
May 25, 2024

Conversation

kidswong999
Copy link
Contributor

Python's import is very flexible and can cover the following situations:

import a
import a, b
import a as b
import a as b, c as d
import a.b
import a.b, c.d
import a.b as c
import a.b as c, d as e

from . import a
from . import a as b
from .a import b
from .a import b as c
from a import *
from a import b
from a import b, c
from a import (b, c)
from a import b as c
from a import b as c, d as e
from a.b import *
from a.b import c
from a.b import c as d
from a.b import c as d, e as f

@marijnh marijnh merged commit 749464f into lezer-parser:main May 25, 2024
@marijnh
Copy link
Contributor

marijnh commented May 25, 2024

Thanks!

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