eladkal opened a new pull request, #62998:
URL: https://github.com/apache/airflow/pull/62998

   Fixing
   ```
   providers/trino/src/airflow/providers/trino/hooks/trino.py:167: error: 
Argument 1 to "BasicAuthentication" has incompatible type "str | None"; 
expected "str"  [arg-type]
                     auth = trino.auth.BasicAuthentication(db.login, 
db.password)
                                                           ^~~~~~~~
     providers/trino/src/airflow/providers/trino/hooks/trino.py:183: error: 
Incompatible types in assignment (expression has type "JWTAuthentication", 
variable has type "BasicAuthentication | None") 
     [assignment]
                     auth = trino.auth.JWTAuthentication(token=token)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     providers/trino/src/airflow/providers/trino/hooks/trino.py:185: error: 
Incompatible types in assignment (expression has type 
"CertificateAuthentication", variable has type "BasicAuthentication | None")
      [assignment]
                     auth = trino.auth.CertificateAuthentication(
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     providers/trino/src/airflow/providers/trino/hooks/trino.py:186: error: 
Argument 1 to "CertificateAuthentication" has incompatible type "Any | None"; 
expected "str"  [arg-type]
                         extra.get("certs__client_cert_path"),
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     providers/trino/src/airflow/providers/trino/hooks/trino.py:187: error: 
Argument 2 to "CertificateAuthentication" has incompatible type "Any | None"; 
expected "str"  [arg-type]
                         extra.get("certs__client_key_path"),
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     providers/trino/src/airflow/providers/trino/hooks/trino.py:190: error: 
Incompatible types in assignment (expression has type "KerberosAuthentication", 
variable has type "BasicAuthentication | None") 
     [assignment]
                     auth = trino.auth.KerberosAuthentication(
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
providers/google/src/airflow/providers/google/cloud/transfers/trino_to_gcs.py:74:
 error: Incompatible return value type (got "list[ColumnDescription]", expected 
"list[tuple[Any, ...]]")  [return-value]
                 return self.cursor.description
                        ^~~~~~~~~~~~~~~~~~~~~~~
     
providers/google/src/airflow/providers/google/cloud/transfers/trino_to_gcs.py:74:
 note: "list" is invariant -- see 
https://mypy.readthedocs.io/en/stable/common_issues.html#variance
     
providers/google/src/airflow/providers/google/cloud/transfers/trino_to_gcs.py:74:
 note: Consider using "Sequence" instead, which is covariant
     Found 7 errors in 2 files (checked 4242 source files)
     ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to