diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-12 12:33:09 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-12 12:36:25 -0500 |
commit | ae7e74487e5aff1b9ebb832a704055ddcf042567 (patch) | |
tree | baa072e0b2d3f2eaafa7a2edaacbc7688e2329de /lib/sqlalchemy/sql/selectable.py | |
parent | 4bd07126f072dfa0d078644c85a896fc165f2137 (diff) | |
download | sqlalchemy-ae7e74487e5aff1b9ebb832a704055ddcf042567.tar.gz |
replace @decorated_property decorator
This decorator is no longer necessary as of Mypy
0.981 [1].
In current mypy versions, we require direct use of
`@property` for return types of these methods to be
recognized
[1] https://github.com/python/mypy/issues/1362
Change-Id: Ibc36083dec854c5f9140a9b621e9bf9d5bb4fb61
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
-rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 1d283e83c..54230d58a 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -3413,7 +3413,8 @@ class SelectBase( """ return self.selected_columns.as_readonly() - @util.deprecated_property( + @property + @util.deprecated( "1.4", "The :attr:`_expression.SelectBase.c` and " ":attr:`_expression.SelectBase.columns` attributes " @@ -5531,7 +5532,8 @@ class Select( return self._compile_state_factory(self, None)._get_display_froms() - @util.deprecated_property( + @property + @util.deprecated( "1.4.23", "The :attr:`_expression.Select.froms` attribute is moved to " "the :meth:`_expression.Select.get_final_froms` method.", |