# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/python/black
- rev: 21.12b0
+ rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/sqlalchemyorg/zimports
- rev: v0.5.0
+ rev: v0.6.0
hooks:
- id: zimports
additional_dependencies:
- flake8-import-order
- flake8-builtins
- - flake8-future-annotations
+ - flake8-future-annotations>=0.0.5
- flake8-docstrings>=1.6.0
- flake8-rst-docstrings
# flake8-rst-docstrings dependency, leaving it here
-
)
MultiRange Types
-~~~~~~~~~~~
+~~~~~~~~~~~~~~~~
The new MultiRange column types found in PostgreSQL 14 onwards are
catered for by the following types:
.. warning::
- The multirange type DDL is currently only supported by the
- psycopg (a.k.a psycopg3) PostgreSQL DBAPI driver.
+ The multirange type DDL support should work with any PostgreSQL DBAPI
+ driver, however the data types returned may vary.
When instantiating models that use these column types, you should pass
whatever data type is expected by the DBAPI driver you're using for
-the column type.
+the column type.
For example:
class _MultiRangeTypeCompilation(AssertsCompiledSQL, fixtures.TestBase):
- __requires__ = "range_types", "psycopg_only_compatibility"
__dialect__ = "postgresql"
# operator tests