Skip to content

Phase 1: Replace typing_extensions.Self with typing.Self#4867

Closed
Balandat wants to merge 1 commit intofacebook:mainfrom
Balandat:export-D91648884
Closed

Phase 1: Replace typing_extensions.Self with typing.Self#4867
Balandat wants to merge 1 commit intofacebook:mainfrom
Balandat:export-D91648884

Conversation

@Balandat
Copy link
Contributor

@Balandat Balandat commented Feb 8, 2026

Summary:
Migrate Self type hint from typing_extensions to the standard library typing module,
which is available in Python 3.11+.

Files changed:

  • ax/fb/api/internal_client.py
  • ax/core/base_trial.py
  • ax/api/client.py
  • ax/utils/testing/core_stubs.py

Reviewed By: mpolson64

Differential Revision: D91648884

Summary:
Migrate Self type hint from typing_extensions to the standard library typing module,
which is available in Python 3.11+.

Files changed:
- ax/fb/api/internal_client.py
- ax/core/base_trial.py
- ax/api/client.py
- ax/utils/testing/core_stubs.py

Reviewed By: mpolson64

Differential Revision: D91648884
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 8, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 8, 2026

@Balandat has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91648884.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.75%. Comparing base (cf654b1) to head (bdc3c31).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4867      +/-   ##
==========================================
- Coverage   96.76%   96.75%   -0.01%     
==========================================
  Files         589      589              
  Lines       61838    61835       -3     
==========================================
- Hits        59836    59830       -6     
- Misses       2002     2005       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@meta-codesync
Copy link

meta-codesync bot commented Feb 8, 2026

This pull request has been merged in 4761470.

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

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants