You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2026/01/05 07:01:54 UTC

[PR] Clean up stale banned apis [airflow]

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

   (no comment)


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Clean up stale banned apis [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #60115:
URL: https://github.com/apache/airflow/pull/60115#discussion_r2660480358


##########
pyproject.toml:
##########
@@ -845,10 +845,8 @@ banned-module-level-imports = ["numpy", "pandas", "polars"]
 
 # Direct import from the airflow package modules and constraints
 "airflow.AirflowException".msg = "Use airflow.exceptions.AirflowException instead."
-"airflow.Dataset".msg = "Use airflow.datasets.Dataset instead."

Review Comment:
   Not a thing anymore



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Clean up stale banned apis [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #60115:
URL: https://github.com/apache/airflow/pull/60115#discussion_r2660482893


##########
pyproject.toml:
##########
@@ -864,11 +862,8 @@ banned-module-level-imports = ["numpy", "pandas", "polars"]
 # Deprecated in Python 3.12: https://github.com/python/cpython/issues/103857
 "datetime.datetime.utcnow".msg = "Use airflow.sdk.timezone.utcnow or datetime.datetime.now(tz=datetime.timezone.utc)"
 "datetime.datetime.utcfromtimestamp".msg = "Use airflow.sdk.timezone.from_timestamp or datetime.datetime.fromtimestamp(tz=datetime.timezone.utc)"
-# Deprecated in Python 3.12: https://github.com/python/cpython/issues/94309
-"typing.Hashable".msg = "Use collections.abc.Hashable"
-"typing.Sized".msg = "Use collections.abc.Sized"

Review Comment:
   Now covered by UP035 along with many others.



##########
pyproject.toml:
##########
@@ -845,10 +845,8 @@ banned-module-level-imports = ["numpy", "pandas", "polars"]
 
 # Direct import from the airflow package modules and constraints
 "airflow.AirflowException".msg = "Use airflow.exceptions.AirflowException instead."
-"airflow.Dataset".msg = "Use airflow.datasets.Dataset instead."
 
 # Deprecated imports
-"airflow.models.baseoperator.BaseOperatorLink".msg = "Use airflow.models.baseoperatorlink.BaseOperatorLink"

Review Comment:
   Not a thing anymore



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Clean up stale banned apis [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #60115:
URL: https://github.com/apache/airflow/pull/60115#discussion_r2660481292


##########
pyproject.toml:
##########
@@ -845,10 +845,8 @@ banned-module-level-imports = ["numpy", "pandas", "polars"]
 
 # Direct import from the airflow package modules and constraints
 "airflow.AirflowException".msg = "Use airflow.exceptions.AirflowException instead."
-"airflow.Dataset".msg = "Use airflow.datasets.Dataset instead."
 
 # Deprecated imports
-"airflow.models.baseoperator.BaseOperatorLink".msg = "Use airflow.models.baseoperatorlink.BaseOperatorLink"

Review Comment:
   Not a thing anymore



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Clean up stale banned apis [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #60115:
URL: https://github.com/apache/airflow/pull/60115


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org