pytorch / botorch

Bayesian optimization in PyTorch
https://botorch.org/
MIT License
3.11k stars 406 forks source link

Apply PEP 604 union type syntax codemod #2561

Closed Balandat closed 1 month ago

Balandat commented 1 month ago

This codemods all Optional[X] type definitions to use the PEP 604 syntax X | None instead.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.98%. Comparing base (68faeff) to head (71b14e0). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2561 +/- ## ========================================== - Coverage 99.98% 99.98% -0.01% ========================================== Files 193 193 Lines 17111 17071 -40 ========================================== - Hits 17108 17068 -40 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

facebook-github-bot commented 1 month ago

@Balandat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 month ago

This pull request was exported from Phabricator. Differential Revision: D63733395

facebook-github-bot commented 1 month ago

This pull request was exported from Phabricator. Differential Revision: D63733395

facebook-github-bot commented 1 month ago

@Balandat merged this pull request in pytorch/botorch@a0a2c0509dbbeec547a65f16cb0cb8d5b19fd7f1.