Skip to content

Add deprecation warnings for legacy framerate aliases - #563

Open
MuhammadBilalKhan267 wants to merge 2 commits into
Breakthrough:mainfrom
MuhammadBilalKhan267:fix/548-deprecation-warnings
Open

Add deprecation warnings for legacy framerate aliases#563
MuhammadBilalKhan267 wants to merge 2 commits into
Breakthrough:mainfrom
MuhammadBilalKhan267:fix/548-deprecation-warnings

Conversation

@MuhammadBilalKhan267

Copy link
Copy Markdown

Closes #548

Summary

  • Emit DeprecationWarning for deprecated framerate aliases across FrameTimecode, open_video(), video backends, and the CLI.
  • Preserve existing compatibility behavior, including frame_rate taking precedence when both forms are provided.
  • Add/update tests for the deprecated aliases, including VideoCaptureAdapter.
  • Update get_framerate() to direct users to frame_rate without emitting duplicate warnings.

Testing

  • Added warning assertions for deprecated aliases.
  • Verified canonical frame_rate usage remains warning-free.
  • Verified legacy aliases continue to work while emitting DeprecationWarning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DeprecationWarnings for deprecated APIs in v0.7 release

1 participant