You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/01/11 21:25:59 UTC

[airflow] 18/27: Fix ``Connection.get_extra`` type (#28594)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 2e84f336207ed929f9c076f2e4876622feb4eb7c
Author: Michael T <br...@gmail.com>
AuthorDate: Wed Dec 28 19:42:38 2022 +0400

    Fix ``Connection.get_extra`` type (#28594)
    
    (cherry picked from commit 5dcbbd6f17c6b287a512b461d16a8a473b194ed9)
---
 airflow/models/connection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/models/connection.py b/airflow/models/connection.py
index 8ed46e325d..5f7406d9d4 100644
--- a/airflow/models/connection.py
+++ b/airflow/models/connection.py
@@ -281,7 +281,7 @@ class Connection(Base, LoggingMixin):
         """Password. The value is decrypted/encrypted when reading/setting the value."""
         return synonym("_password", descriptor=property(cls.get_password, cls.set_password))
 
-    def get_extra(self) -> dict:
+    def get_extra(self) -> str:
         """Return encrypted extra-data."""
         if self._extra and self.is_extra_encrypted:
             fernet = get_fernet()