Closed Sukeerthi31 closed 7 months ago
This issue is not relevant to hypothesis_graphql
. The same could be achieved with sample.py
:
from sample import foo
def foo():
print("Hello from foo!")
> python sample.py
Traceback (most recent call last):
File "/tmp/sample.py", line 1, in <module>
from sample import foo
File "/tmp/sample.py", line 1, in <module>
from sample import foo
ImportError: cannot import name 'foo' from partially initialized module 'sample' (most likely due to a circular import) (/tmp/sample.py)
I.e. you should not name your sample file the same as the module you have imports from.
Describe the bug Unable to import from_schema from hypothesis_graphql
To Reproduce Steps to reproduce the behaviour:
Expected behavior Imports to go through correctly
Environment (please complete the following information):