You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "Copilot (via GitHub)" <gi...@apache.org> on 2025/08/08 08:02:43 UTC
Re: [PR] [GH-2252] Deprecation warnings pop up in the wrong place [sedona]
Copilot commented on code in PR #2253:
URL: https://github.com/apache/sedona/pull/2253#discussion_r2262229604
##########
python/sedona/stats/clustering/dbscan/__init__.py:
##########
@@ -20,7 +20,7 @@
import warnings
warnings.warn(
- "The 'sedona.stats.clustering.dbscan' module is deprecated and will be removed in future versions. Please use 'sedona.spark.stats' instead.",
+ "Importing from 'sedona.stats.clustering.dbscan' is deprecated and will be removed in future versions. Please use 'sedona.spark.stats.clustering' instead.",
Review Comment:
The warning message is inconsistent with the module path. It should mention 'sedona.spark.stats.clustering.dbscan' instead of just 'sedona.spark.stats.clustering' to match the full module path being deprecated.
```suggestion
"Importing from 'sedona.spark.stats.clustering.dbscan' is deprecated and will be removed in future versions. Please use 'sedona.spark.stats.clustering.dbscan' instead.",
```
--
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: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org