-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
AssertionError: Must not defer during final iteration #12113
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
Labels
Comments
Same issue here! |
This was referenced Mar 26, 2022
Closed
This was fixed in #12762. |
4 tasks
provinzkraut
added a commit
to litestar-org/litestar
that referenced
this issue
Oct 27, 2022
* Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * v1.30.0 * docs: add mookrs as a contributor for doc (#637) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * Minor code cleanup * Improve SQLAlchemy backend, support sync/async * Improved backwards compatibility, typing and tests * Simplify session backend configuration * Add expiry mechanism to FakeAsyncMemcached, improve typing * Test all session backends * Remove a merge artifact * Remove identity-source support for now * Add docstrings to session backends, improve typing * Minor styling fixes * Add reference docs for session middleware * Fix type annotations * Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * Initial draft for server-side sessions and unified session-middleware interface * Implement SessionMiddleware with backends, basic server-session backends. Integrate backends with existing tests * v1.30.0 * docs: add mookrs as a contributor for doc (#637) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * Minor code cleanup * Improved backwards compatibility, typing and tests * Test all session backends * Remove a merge artifact * session docs draft * Disable MD052 in markdownlint MD052 messes with mkdocs material's code highlighting * Add aiomcache and redis types to pylint dependencies * Remove `backend` property from BaseBackendConfig. This proved difficult to type correctly, and I was hitting python/mypy#12113 (or some variety), so I removed it for now * Add / update reference and usage documentation + some docstrings for session middleware * Remove unused imports * Move session backend config to the top * Some minor documentation adjustments * Improve docstrings Add missing args and returns, add missing docstrings * Rename SessionBackend > BaseSessionBackend * Add _sync suffix to private synchronous methods * Move all type variables to top of the file * Use explicit "import from" consistently * Make FileStorageMetadataWrapper a NamedTuple * Add `make_filename` option to FileBackendConfig * Move fake_memcached.FakeAsyncMemcached to tests/mocks.py * Implement MemoryBackend using SimpleCacheBackend * Add __slots__ for session middleware * Add support for all session backends to TestClient * Update starlite/middleware/session/sqlalchemy_backend.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/testing/test_client/client.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/middleware/session/sqlalchemy_backend.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/middleware/session/memcached_backend.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/middleware/session/sqlalchemy_backend.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/middleware/session/cookie_backend.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/middleware/session/base.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/testing/test_client/client.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Update starlite/testing/test_client/client.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * Implement support for session backends in TestClient * Make sqlalchemy session examples "run as-is" * Fix lower-casing of header values. (#693) A bug was introduced as part of #626, that would lower case header values * Remove types-redis * Add middleware bypassing to SessionMiddleware Co-authored-by: Peter Schutt <[email protected]> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Na'aman Hirschfeld <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Running myyp produces:
AssertionError: Must not defer during final iteration
Traceback
To Reproduce
source of mypybug.py:
Source of classb.py:
Executed:
mypy mypybug.py
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: