File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
88## [ Development]
99<!-- Do Not Erase This Section - Used for tracking unreleased changes -->
1010
11+ ### Fixed
12+ - ** Mypy** : Declare UMAP mixin weighted-edge DataFrame attributes for type checking.
13+
1114## [ 0.50.5 - 2026-01-25]
1215
1316### Fixed
Original file line number Diff line number Diff line change 2626
2727logger = setup_logger (__name__ )
2828
29+ DataFrameLike = Union [pd .DataFrame , Any ]
30+
2931if TYPE_CHECKING :
30- MIXIN_BASE = FeatureMixin
32+ class _UMAPMixinBase (FeatureMixin ):
33+ _weighted_edges_df : Optional [DataFrameLike ]
34+ _weighted_edges_df_from_nodes : Optional [DataFrameLike ]
35+ _weighted_edges_df_from_edges : Optional [DataFrameLike ]
36+
37+ MIXIN_BASE = _UMAPMixinBase
3138else :
3239 MIXIN_BASE = object
3340
34-
35- DataFrameLike = Union [pd .DataFrame , Any ]
36-
3741# Error message for empty feature matrix
3842_EMPTY_FEATURES_ERROR_MSG = (
3943 "UMAP requires at least one numeric feature column, but received empty feature matrix. "
You can’t perform that action at this time.
0 commit comments