Merged
Conversation
….py` and update its invocation in tests and Makefile.
…/async base classes
patch.object cannot intercept calls in C-extension modules, causing false assertion failures on mock call counts.
…pter drivers and configs.
…n and enhance exception mapping.
- Fix all exception/context manager signatures: `exc_tb: Any` → `"TracebackType | None"` across all adapters, configs, and utilities - Fix migration abstract method returns: `-> Any` → proper union types like `-> "None | Awaitable[None]"` for sync/async duality - Move cursor wrapper classes from driver.py to _typing.py across all 16 adapters, consistent with SessionContext placement pattern - Add cursor TypeAlias exports to adapter _typing.py files following the existing connection TypeAlias convention - Fix handle_database_exceptions Protocol: change pending_exception from mutable attribute to @Property for covariance compatibility - Clean up _typing.py consistency: remove duplicated imports between TYPE_CHECKING/else blocks, use `if not TYPE_CHECKING:` pattern - Fix all mypy errors: remove redundant casts, unused type:ignore comments, add proper return type casts - Fix all pyright errors: resolve 79 → 0 errors including Protocol invariance issues with exception handler overrides - Fix slotscheck: remove stale mypyc .so files that hid __slots__
…e distinct placeholders and add robust rollback handling to the migration tracker.
… statement configuration as class variables in adapter configs, and update OracleDB cursor type aliases.
…ting type hints and adding casts.
…eading and update `AsyncThreadedBytesIterator` to use it
…event mypyc segfaults
…ls.UUID and stdlib uuid.UUID
- Removed `@pytest.mark.asyncio` from various test cases across multiple test files, as they are not required for the current test structure. - Updated tests in the following files: - tests/integration/adapters/mysqlconnector/extensions/events/test_queue_backend.py - tests/integration/adapters/mysqlconnector/test_driver_async.py - tests/integration/adapters/mysqlconnector/test_exceptions.py - tests/integration/adapters/mysqlconnector/test_parameter_styles.py - tests/integration/adapters/oracledb/extensions/events/test_queue_backend.py - tests/integration/adapters/oracledb/test_driver_async.py - tests/integration/adapters/oracledb/test_msgspec_clob.py - tests/integration/adapters/oracledb/test_stack.py - tests/integration/adapters/psqlpy/extensions/events/test_listen_notify.py - tests/integration/adapters/psqlpy/extensions/events/test_queue_backend.py - tests/integration/config/test_connection_injection.py - tests/integration/extensions/litestar/test_channels_backend.py - tests/integration/storage/test_streaming.py - tests/integration/test_pool_concurrency.py - tests/unit/adapters/test_aiosqlite/test_pool_shutdown.py - tests/unit/adapters/test_asyncpg/test_cloud_connectors.py - tests/unit/adapters/test_oracledb/test_oracle_adk_store.py - tests/unit/adapters/test_pool_logging.py - tests/unit/config/test_connection_config_edge_cases.py - tests/unit/config/test_connection_config_parameters.py - tests/unit/config/test_migration_methods.py - tests/unit/driver/test_execute_script.py - tests/unit/driver/test_fetch_aliases.py - tests/unit/driver/test_stack_base.py - tests/unit/extensions/test_events/test_channel.py - tests/unit/storage/test_bridge.py
…ictionary for custom type coercions
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve mypyc configuration