Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b066c45

Browse files
zzzeekGerrit Code Review
authored andcommitted
Merge "Remove old versionadded and versionchanged" into main
2 parents 53be3fc + ee7e499 commit b066c45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+4
-709
lines changed

doc/build/core/connections.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,6 @@ as the schema name is passed to these methods explicitly.
855855
configurations, the :ref:`horizontal_sharding_toplevel` extension may
856856
be used. See the example at :ref:`examples_sharding`.
857857

858-
859-
.. versionadded:: 1.1
860-
861858
.. _sql_caching:
862859

863860

doc/build/core/constraints.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,6 @@ like the following is generated:
259259
sqlalchemy.exc.CompileError: Can't emit DROP CONSTRAINT for constraint
260260
ForeignKeyConstraint(...); it has no name
261261

262-
.. versionchanged:: 1.0.0 - The DDL system invoked by
263-
:meth:`_schema.MetaData.create_all`
264-
and :meth:`_schema.MetaData.drop_all` will now automatically resolve mutually
265-
dependent foreign keys between tables declared by
266-
:class:`_schema.ForeignKeyConstraint` and :class:`_schema.ForeignKey` objects, without
267-
the need to explicitly set the :paramref:`_schema.ForeignKeyConstraint.use_alter`
268-
flag.
269-
270-
.. versionchanged:: 1.0.0 - The :paramref:`_schema.ForeignKeyConstraint.use_alter`
271-
flag can be used with an un-named constraint; only the DROP operation
272-
will emit a specific error when actually called upon.
273-
274262
.. seealso::
275263

276264
:ref:`constraint_naming_conventions`
@@ -730,9 +718,6 @@ one column present, the scan does use a deterministic search, however the
730718
structure of the expression will determine which column is noted as
731719
"column zero".
732720

733-
.. versionadded:: 1.0.0 The :class:`.CheckConstraint` object now supports
734-
the ``column_0_name`` naming convention token.
735-
736721
.. _naming_schematypes:
737722

738723
Configuring Naming for Boolean, Enum, and other schema types
@@ -790,9 +775,6 @@ The above schema will produce:
790775
CONSTRAINT ck_foo_flag CHECK (flag IN (0, 1))
791776
)
792777

793-
.. versionchanged:: 1.0 Constraint naming conventions that don't include
794-
``%(constraint_name)s`` again work with :class:`.SchemaType` constraints.
795-
796778
Constraints API
797779
---------------
798780

doc/build/core/event.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ as long as the names match up::
8181
Above, the presence of ``**kw`` tells :func:`.listens_for` that
8282
arguments should be passed to the function by name, rather than positionally.
8383

84-
.. versionadded:: 0.9.0 Added optional ``named`` argument dispatch to
85-
event calling.
86-
8784
Targets
8885
-------
8986

doc/build/orm/declarative_config.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ configuration via the :meth:`.MapperEvents.before_configured` event::
338338
""" """
339339
# do something before mappings are configured
340340

341-
.. versionadded:: 0.9.3
342-
343-
344341
.. _declarative_metadata:
345342

346343
``metadata``

doc/build/orm/join_conditions.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,6 @@ annotating with :func:`_orm.foreign`::
483483
"Writer.magazine_id == Article.magazine_id)",
484484
)
485485

486-
.. versionchanged:: 1.0.0 the ORM will attempt to warn when a column is used
487-
as the synchronization target from more than one relationship
488-
simultaneously.
489-
490-
491486
Non-relational Comparisons / Materialized Path
492487
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
493488

@@ -527,11 +522,6 @@ we seek for a load of ``Element.descendants`` to look like:
527522
FROM element
528523
WHERE element.path LIKE ('/foo/bar2' || '/%') ORDER BY element.path
529524

530-
.. versionadded:: 0.9.5 Support has been added to allow a single-column
531-
comparison to itself within a primaryjoin condition, as well as for
532-
primaryjoin conditions that use :meth:`.ColumnOperators.like` as the comparison
533-
operator.
534-
535525
.. _self_referential_many_to_many:
536526

537527
Self-Referential Many-to-Many Relationship

doc/build/orm/persistence_techniques.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ value and pass it through, rather than omitting it as a "missing" value::
243243
signal to the ORM that we'd like ``None`` to be passed into the type whenever
244244
present, even though no special type-level behaviors are assigned to it.
245245

246-
.. versionadded:: 1.1 added the :meth:`.TypeEngine.evaluates_none` method
247-
in order to indicate that a "None" value should be treated as significant.
248-
249246
.. _orm_server_defaults:
250247

251248
Fetching Server-Generated Defaults

doc/build/orm/session_events.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,6 @@ Object Lifecycle Events
410410
Another use case for events is to track the lifecycle of objects. This
411411
refers to the states first introduced at :ref:`session_object_states`.
412412

413-
.. versionadded:: 1.1 added a system of events that intercept all possible
414-
state transitions of an object within the :class:`.Session`.
415-
416413
All the states above can be tracked fully with events. Each event
417414
represents a distinct state transition, meaning, the starting state
418415
and the destination state are both part of what are tracked. With the

doc/build/orm/session_state_management.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ It's helpful to know the states which an instance can have within a session:
3030
the session's transaction is rolled back, a deleted object moves
3131
*back* to the persistent state.
3232

33-
.. versionchanged:: 1.1 The 'deleted' state is a newly added session
34-
object state distinct from the 'persistent' state.
35-
3633
* **Detached** - an instance which corresponds, or previously corresponded,
3734
to a record in the database, but is not currently in any session.
3835
The detached object will contain a database identity marker, however

doc/build/orm/versioning.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ It is *strongly recommended* that server side version counters only be used
209209
when absolutely necessary and only on backends that support :term:`RETURNING`,
210210
currently PostgreSQL, Oracle, MariaDB 10.5, SQLite 3.35, and SQL Server.
211211

212-
.. versionadded:: 0.9.0
213-
214-
Support for server side version identifier tracking.
215212

216213
Programmatic or Conditional Version Counters
217214
--------------------------------------------
@@ -255,8 +252,3 @@ issues::
255252
# will leave version_uuid unchanged
256253
u1.name = "u3"
257254
session.commit()
258-
259-
.. versionadded:: 0.9.0
260-
261-
Support for programmatic and conditional version identifier tracking.
262-

examples/generic_associations/generic_fk.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
queued up, here it is. The author recommends "table_per_related"
1717
or "table_per_association" instead of this approach.
1818
19-
.. versionadded:: 0.8.3
20-
2119
"""
2220
from sqlalchemy import and_
2321
from sqlalchemy import Column

lib/sqlalchemy/dialects/mssql/base.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,6 @@ def _reset_mssql(dbapi_connection, connection_record, reset_state):
632632
will always remain fixed and always output exactly that
633633
type.
634634
635-
.. versionadded:: 1.0.0
636-
637635
.. _multipart_schema_names:
638636
639637
Multipart Schema Names
@@ -726,10 +724,6 @@ def _reset_mssql(dbapi_connection, connection_record, reset_state):
726724
it is available using the ``legacy_schema_aliasing`` argument to
727725
:func:`_sa.create_engine` as illustrated above.
728726
729-
.. versionchanged:: 1.1 the ``legacy_schema_aliasing`` flag introduced
730-
in version 1.0.5 to allow disabling of legacy mode for schemas now
731-
defaults to False.
732-
733727
.. deprecated:: 1.4
734728
735729
The ``legacy_schema_aliasing`` flag is now
@@ -784,12 +778,6 @@ def _reset_mssql(dbapi_connection, connection_record, reset_state):
784778
CREATE TABLE my_table (x INTEGER NOT NULL, y INTEGER NOT NULL,
785779
PRIMARY KEY NONCLUSTERED (x, y))
786780
787-
.. versionchanged:: 1.1 the ``mssql_clustered`` option now defaults
788-
to None, rather than False. ``mssql_clustered=False`` now explicitly
789-
renders the NONCLUSTERED clause, whereas None omits the CLUSTERED
790-
clause entirely, allowing SQL Server defaults to take effect.
791-
792-
793781
MSSQL-Specific Index Options
794782
-----------------------------
795783
@@ -1405,8 +1393,6 @@ class VARBINARY(sqltypes.VARBINARY, sqltypes.LargeBinary):
14051393
either ``VARBINARY(max)`` or IMAGE is rendered, as well as the SQL
14061394
Server ``FILESTREAM`` option.
14071395
1408-
.. versionadded:: 1.0.0
1409-
14101396
.. seealso::
14111397
14121398
:ref:`mssql_large_type_deprecation`
@@ -1451,8 +1437,6 @@ class XML(sqltypes.Text):
14511437
additional arguments, such as "CONTENT", "DOCUMENT",
14521438
"xml_schema_collection".
14531439
1454-
.. versionadded:: 1.1.11
1455-
14561440
"""
14571441

14581442
__visit_name__ = "XML"

lib/sqlalchemy/dialects/mysql/base.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,6 @@ def connect(dbapi_connection, connection_record):
719719
underlying CREATE INDEX, so it *must* be a valid index prefix for your MySQL
720720
storage engine.
721721
722-
.. versionadded:: 1.1.5
723-
724722
.. seealso::
725723
726724
`CREATE INDEX <https://dev.mysql.com/doc/refman/5.0/en/create-index.html>`_ - MySQL documentation
@@ -1000,11 +998,6 @@ class MyClass(Base):
1000998
d TIMESTAMP NOT NULL
1001999
)
10021000
1003-
.. versionchanged:: 1.0.0 - SQLAlchemy now renders NULL or NOT NULL in all
1004-
cases for TIMESTAMP columns, to accommodate
1005-
``explicit_defaults_for_timestamp``. Prior to this version, it will
1006-
not render "NOT NULL" for a TIMESTAMP column that is ``nullable=False``.
1007-
10081001
""" # noqa
10091002

10101003
from array import array as _array

lib/sqlalchemy/dialects/mysql/enumerated.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ def __init__(self, *values, **kw):
142142
essential that the list of set values is expressed in the
143143
**exact same order** as exists on the MySQL database.
144144
145-
.. versionadded:: 1.0.0
146-
147145
"""
148146
self.retrieve_as_bitwise = kw.pop("retrieve_as_bitwise", False)
149147
self.values = tuple(values)

lib/sqlalchemy/dialects/mysql/json.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class JSON(sqltypes.JSON):
2828
datatype, by adapting the operations to render the ``JSON_EXTRACT``
2929
function at the database level.
3030
31-
.. versionadded:: 1.1
32-
3331
"""
3432

3533
pass

lib/sqlalchemy/dialects/oracle/base.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@
453453
"oracle+cx_oracle://scott:tiger@xe",
454454
exclude_tablespaces=["SYSAUX", "SOME_TABLESPACE"])
455455
456-
.. versionadded:: 1.1
457-
458456
DateTime Compatibility
459457
----------------------
460458
@@ -466,13 +464,6 @@
466464
is reflected and the type is reported as ``DATE``, the time-supporting
467465
:class:`_oracle.DATE` type is used.
468466
469-
.. versionchanged:: 0.9.4 Added :class:`_oracle.DATE` to subclass
470-
:class:`.DateTime`. This is a change as previous versions
471-
would reflect a ``DATE`` column as :class:`_types.DATE`, which subclasses
472-
:class:`.Date`. The only significance here is for schemes that are
473-
examining the type of column for use in special Python translations or
474-
for migrating schemas to other database backends.
475-
476467
.. _oracle_table_options:
477468
478469
Oracle Table Options
@@ -488,8 +479,6 @@
488479
"some_table", metadata, ...,
489480
prefixes=['GLOBAL TEMPORARY'], oracle_on_commit='PRESERVE ROWS')
490481
491-
.. versionadded:: 1.0.0
492-
493482
* ``COMPRESS``::
494483
495484
Table('mytable', metadata, Column('data', String(32)),
@@ -501,8 +490,6 @@
501490
The ``oracle_compress`` parameter accepts either an integer compression
502491
level, or ``True`` to use the default compression level.
503492
504-
.. versionadded:: 1.0.0
505-
506493
.. _oracle_index_options:
507494
508495
Oracle Specific Index Options
@@ -519,8 +506,6 @@
519506
Bitmap indexes cannot be unique and cannot be compressed. SQLAlchemy will not
520507
check for such limitations, only the database will.
521508
522-
.. versionadded:: 1.0.0
523-
524509
Index compression
525510
~~~~~~~~~~~~~~~~~
526511
@@ -537,8 +522,6 @@
537522
number of prefix columns to compress, or ``True`` to use the default (all
538523
columns for non-unique indexes, all but the last column for unique indexes).
539524
540-
.. versionadded:: 1.0.0
541-
542525
""" # noqa
543526

544527
from __future__ import annotations

lib/sqlalchemy/dialects/oracle/types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ class DATE(_OracleDateLiteralRender, sqltypes.DateTime):
160160
:class:`_types.DateTime`; this is to suit the fact that the Oracle
161161
``DATE`` type supports a time value.
162162
163-
.. versionadded:: 0.9.4
164-
165163
"""
166164

167165
__visit_name__ = "DATE"

lib/sqlalchemy/dialects/postgresql/array.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,8 @@ def self_group(self, against=None):
163163

164164

165165
class ARRAY(sqltypes.ARRAY):
166-
167166
"""PostgreSQL ARRAY type.
168167
169-
.. versionchanged:: 1.1 The :class:`_postgresql.ARRAY` type is now
170-
a subclass of the core :class:`_types.ARRAY` type.
171-
172168
The :class:`_postgresql.ARRAY` type is constructed in the same way
173169
as the core :class:`_types.ARRAY` type; a member type is required, and a
174170
number of dimensions is recommended if the type is to be used for more
@@ -308,9 +304,6 @@ def __init__(
308304
a value of one will be added to all index values before passing
309305
to the database.
310306
311-
.. versionadded:: 0.9.5
312-
313-
314307
"""
315308
if isinstance(item_type, ARRAY):
316309
raise ValueError(

0 commit comments

Comments
 (0)