Created
January 3, 2018 15:03
-
-
Save TheBlusky/8e9e0795635ef4c2512926bd20115c12 to your computer and use it in GitHub Desktop.
ImportError: cannot import name A2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .pack_a import A1, A2 | |
from .pack_b import B1, B2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .pack_b import B1 | |
class A1: | |
def __init__(self): | |
print("A1") | |
B1() | |
class A2: | |
def __init__(self): | |
print("A2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .pack_a import A2 | |
class B1: | |
def __init__(self): | |
print("B1") | |
class B2: | |
def __init__(self): | |
print("B2") | |
A2() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pack import A1, A2, B1, B2 | |
A1() | |
B2() |
Author
TheBlusky
commented
Jan 3, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment