Skip to content

Conversation

@shunping
Copy link
Collaborator

@shunping shunping commented Mar 15, 2025

  • Better type hinting in specifiable with overloads
  • Move non-method attributes and static methods out of Specifiable Protocol
  • Make spec_type a function which returns a class-specific spec_type variable
  • Add tests for some uncommon use cases.

@shunping shunping marked this pull request as ready for review March 16, 2025 01:32
@shunping
Copy link
Collaborator Author

r: @damccorm

@shunping shunping self-assigned this Mar 16, 2025
@shunping shunping requested a review from damccorm March 16, 2025 01:32
@shunping shunping added this to the 2.64.0 Release milestone Mar 16, 2025
@shunping shunping changed the title [AnomalyDetection] Better typehinting in specifiable. [AnomalyDetection] Better type hinting in specifiable. Mar 16, 2025
@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@shunping shunping force-pushed the anomaly-detection-6 branch from 9bba3ef to 3af3cb7 Compare March 17, 2025 02:14
- Better typehinting in specifiable with overloads
- Move non-method attributes and staticmethod outside of Specifiable Protocol
- Make spec_type a function which returns a class-specific spec_type variable
- Add tests for some uncommon use cases.
@shunping shunping force-pushed the anomaly-detection-6 branch from 3af3cb7 to 9085dfa Compare March 17, 2025 02:16
@shunping shunping changed the title [AnomalyDetection] Better type hinting in specifiable. [AnomalyDetection] Refactor and improve Specifiable Mar 17, 2025
@shunping shunping force-pushed the anomaly-detection-6 branch from 679dd22 to aa4ae03 Compare March 17, 2025 16:06
Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just had one more comment, otherwise this LGTM

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@damccorm
Copy link
Contributor

Waiting on checks to pass then will merge

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failure is unrelated

@damccorm damccorm merged commit 99eee0f into apache:master Mar 18, 2025
89 of 90 checks passed
talatuyarer pushed a commit to talatuyarer/beam that referenced this pull request Mar 20, 2025
* Refactor and improve Specifiable.

- Better typehinting in specifiable with overloads
- Move non-method attributes and staticmethod outside of Specifiable Protocol
- Make spec_type a function which returns a class-specific spec_type variable
- Add tests for some uncommon use cases.

* Fix static function names and use pass for empty functions per review.

* Add a warning for unsupported types in spec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants