Skip to content

Conversation

@osasisorae
Copy link

Summary

  • update every autogenerated __getattr__ gateway so that entries mapping to "." import the submodule directly instead of calling back into the parent (prevents the recursion Freezegun triggers)
  • add tests/custom/test_lazy_imports.py to reproduce the access pattern and ensure each lazily exported submodule resolves to a real module

Testing

  • python -m pip install --break-system-packages aiofiles websockets
  • PYTHONPATH=src pytest

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.

1 participant