From: Edgar Ramírez-Mondragón Date: Mon, 29 Apr 2024 23:10:35 +0000 (-0600) Subject: Consider built-in Python 3.13 `__static_attributes__` class attribute in `sqlalchemy... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8227d70187d9a092f4ce4eab753e225ee0bbbb9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Consider built-in Python 3.13 `__static_attributes__` class attribute in `sqlalchemy.util.langhelpers.TypingOnly` Context: * https://docs.python.org/3.13/whatsnew/3.13.html#new-features * https://docs.python.org/3.13/library/stdtypes.html#class.__static_attributes__ * https://github.com/python/cpython/issues/115775 * https://github.com/python/cpython/pull/115913 --- diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py index fe3bd16840..6e5828c6c7 100644 --- a/lib/sqlalchemy/util/langhelpers.py +++ b/lib/sqlalchemy/util/langhelpers.py @@ -1973,6 +1973,7 @@ class TypingOnly: "__slots__", "__orig_bases__", "__annotations__", + "__static_attributes__", } ) if remaining: