Add support for integer, floating point, boolean NumPy scalar types__
(:ticket:[#332](https://github.com/psycopg/psycopg/issues/332)).
Add !timeout and !stop_after parameters to Connection.notifies()
(:ticket:340).
Allow dumpers to return !None, to be converted to NULL (:ticket:[#377](https://github.com/psycopg/psycopg/issues/377)).
Add :ref:raw-query-cursors to execute queries using placeholders in
PostgreSQL format ($1, $2...) (:tickets:[#560](https://github.com/psycopg/psycopg/issues/560), [#839](https://github.com/psycopg/psycopg/issues/839)).
Add capabilities object to :ref:inspect the libpq capabilities <capabilities> (:ticket:[#772](https://github.com/psycopg/psycopg/issues/772)).
Add ~rows.scalar_row to return scalar values from a query (:ticket:[#723](https://github.com/psycopg/psycopg/issues/723)).
Add ~Connection.cancel_safe() for encrypted and non-blocking cancellation
when using libpq v17. Use such method internally to implement
!KeyboardInterrupt and ~cursor.copy termination (:ticket:[#754](https://github.com/psycopg/psycopg/issues/754)).
The !context parameter of sql objects ~sql.Composable.as_string() and
~sql.Composable.as_bytes() methods is now optional (:ticket:[#716](https://github.com/psycopg/psycopg/issues/716)).
Add ~Connection.set_autocommit() on sync connections, and similar
transaction control methods available on the async connections.
Add a size parameter to ~Cursor.stream() to enable results retrieval in
chunks instead of row-by-row (:ticket:[#794](https://github.com/psycopg/psycopg/issues/794)).
.. rubric:: New libpq wrapper features
Add support for libpq functions to close prepared statements and portals
introduced in libpq v17 (:ticket:[#603](https://github.com/psycopg/psycopg/issues/603)).
Add support for libpq encrypted and non-blocking query cancellation
functions introduced in libpq v17 (:ticket:[#754](https://github.com/psycopg/psycopg/issues/754)).
... (truncated)
Commits
bb47d39 chore: bump psycopg package version to 3.2.1
Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
Alex Waygood
Ali Hamdan
Edward Paget
Evgeniy Slobodkin
Hashem
hesam
Hugo van Kemenade
Ihor
James Braza
Jelle Zijlstra
jhance
Jukka Lehtosalo
Loïc Simon
Marc Mueller
Matthieu Devlin
Michael R. Crusoe
Nikita Sobolev
Oskari Lehto
Riccardo Di Maio
Richard Si
roberfi
Roman Solomatin
Sam Xifaras
Shantanu
Spencer Brown
Srinivas Lade
Tamir Duberstein
youkaichao
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Mypy 1.9
We’ve just uploaded mypy 1.9 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Breaking Changes
Because the version of typeshed we use in mypy 1.9 doesn't support 3.7, neither does mypy 1.9. (Jared Hance, PR 16883)
... (truncated)
Commits
c28b525 [1.10 backport] Fix error reporting on cached run after uninstallation of thi...
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the python-dependencies group with 4 updates in the / directory: djangorestframework, psycopg, mypy and pylint.
Updates
djangorestframework
from 3.15.1 to 3.15.2Commits
c7a7eae
Version 3.15.2 (#9439)3b41f01
Fix potential XSS vulnerability in break_long_headers template filter (#9435)fe92f0d
Add__hash__
method forpermissions.OperandHolder
class (#9417)fbdab09
docs: Correct some evaluation results and a httpie option in Tutorial1 (#9421)36d5c0e
tests: Check urlpatterns after cleanups (#9400)9d4ed05
Don't use Windows line endingsb34bde4
Fix typo in setup.cfg settingab681f2
Update requirements in docs2237724
bump pygments (security hygiene)d58b8da
Update deprecation hintsUpdates
psycopg
from 3.1.19 to 3.2.1Changelog
Sourced from psycopg's changelog.
... (truncated)
Commits
bb47d39
chore: bump psycopg package version to 3.2.155490a2
fix: fix versions in packaging metadata1cbc42a
docs: fix title level of major releases06a6e5e
docs: mention dropping Python 3.7 in psycopg 3.2 releaseea3735d
docs: better organization of the 3.2 release notes896eee2
chore: bump psycopg package version to 3.2.02e2f4d7
chore: bump psycopg package version to 3.1.207369d3b
Merge pull request #846 from eli-schwartz/tomllib6672c70
style: shorter line in pyproject.tomla517bb4
build: avoid installing tomli on recent pythonUpdates
mypy
from 1.10.0 to 1.10.1Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
c28b525
[1.10 backport] Fix error reporting on cached run after uninstallation of thi...Updates
pylint
from 3.2.2 to 3.2.5Commits
ae730ac
Bump pylint to 3.2.5, update changelog (#9756)be7b5cc
[unreachable-code] Fix the false positive in python 3.8 (#9753) (#9755)6c3ab77
[release] Fix 3.2.4 release date following issue with twine 5.1.0 (#9749) (#9...425ad66
Bump pylint to 3.2.4, update changelog (#9746)c41c35a
[possibly-used-before-assignment] Avoid FP for typing.NoReturn & Never (#9714...22e4d36
[symilar] Rename the unittest file that had a typo.3cf313a
[symilar] Fix the short form options that weren't being processed properlye13544f
[symilar] Fix crash when giving bad options to symilarc3e2579
[unnecessary-list-index-lookup] Fix crashes for uninferrable 'start' value in...6b66ca6
[undefined-variable] Fix a crash for undefined lineno in annotations (#9705) ...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