Skip to content

Revert "[BE] Remove Optional and Union usage repo wide (#176918)"#177184

Closed
huydhn wants to merge 2 commits intopytorch:mainfrom
huydhn:revert-176918
Closed

Revert "[BE] Remove Optional and Union usage repo wide (#176918)"#177184
huydhn wants to merge 2 commits intopytorch:mainfrom
huydhn:revert-176918

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Mar 11, 2026

This reverts commit b244229.

This is needed to unblock diff train because #176918 has a merge conflict with #175497 and the latter has been reverted by #177113. The PRs and their reverts were landed in interlocking order in fbcode, so this is the only way to untangle them.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @Lucaskabela @laithsakka As you both are updating these 2 files:

  • torch/fx/experimental/_size_hinting.py
  • torch/fx/experimental/symbolic_shapes.py

We probably to coordinate their landing later

…76918)"

This reverts commit b244229.

Signed-off-by: Huy Do <huydhn@gmail.com>
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 11, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177184

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 70 Pending

As of commit 1f9b4fe with merge base ad67e7a (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ci-no-td Do not run TD on this PR ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests module: dynamo module: inductor release notes: releng release notes category labels Mar 11, 2026
Signed-off-by: Huy Do <huydhn@gmail.com>
@huydhn
Copy link
Contributor Author

huydhn commented Mar 11, 2026

@pytorchbot merge -f 'Should be ok, this is a revert and lint jobs have passed'

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Mar 13, 2026
…177314)

This got revertedin #177184  due to some conflict with unrelated PR that needed to be reverted - lets finally kill Optional/Union usage!

Pull Request resolved: #177314
Approved by: https://github.com/aorenste, https://github.com/fxdawnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests Merged module: dynamo module: inductor release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants