-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bump types-psycopg2 from 2.9.21.11 to 2.9.21.13 #16343
Conversation
Bumps [types-psycopg2](https://github.com/python/typeshed) from 2.9.21.11 to 2.9.21.13. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psycopg2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
|
https://github.com/python/typeshed/commits/main/stubs/psycopg2 for recent changes |
Guessing that this is python/typeshed#10630. I think the problem is that I wrote a protocol for Cursor.description synapse/synapse/storage/types.py Lines 53 to 72 in 8a47d6e
based on https://peps.python.org/pep-0249/#description. But psycopg2 uses a So now mypy can see that psycopg.extensions.cursor doesn't satisfy the protocol I wrote. I can't see a clean way to fix this, and there's only one call site: synapse/synapse/storage/database.py Lines 1045 to 1057 in 2a0f86f
So I'm going to just change description to be |
See #16343 (comment) for rationale.
A newer version of types-psycopg2 exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged. |
@DMRobertson Is it worth recreating this to see if it works better? |
I'd be surprised if it worked without the tweak I added in |
@dependabot recreate |
Superseded by #16381. |
See #16343 (comment) for rationale.
* Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 Bumps [types-psycopg2](https://github.com/python/typeshed) from 2.9.21.11 to 2.9.21.14. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psycopg2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Relax the annotation of Cursor.description See #16343 (comment) for rationale. * Changelog * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
Bumps types-psycopg2 from 2.9.21.11 to 2.9.21.13.
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)