-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply PEP 604 union type syntax codemod #2808
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2808 +/- ##
=======================================
Coverage 95.71% 95.71%
=======================================
Files 490 490
Lines 48555 48532 -23
=======================================
- Hits 46472 46451 -21
+ Misses 2083 2081 -2 ☔ View full report in Codecov by Sentry. |
@Balandat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was exported from Phabricator. Differential Revision: D63764095 |
Summary: This codemods all `Optional[X]` type definitions to use the PEP 604 syntax `X | None` instead. Pull Request resolved: facebook#2808 Reviewed By: mpolson64 Differential Revision: D63764095 Pulled By: Balandat
This pull request was exported from Phabricator. Differential Revision: D63764095 |
Summary: This codemods all `Optional[X]` type definitions to use the PEP 604 syntax `X | None` instead. Pull Request resolved: facebook#2808 Reviewed By: mpolson64 Differential Revision: D63764095 Pulled By: Balandat
This pull request was exported from Phabricator. Differential Revision: D63764095 |
Summary: This codemods all `Optional[X]` type definitions to use the PEP 604 syntax `X | None` instead. Pull Request resolved: facebook#2808 Reviewed By: mpolson64 Differential Revision: D63764095 Pulled By: Balandat
Summary: This codemods all `Optional[X]` type definitions to use the PEP 604 syntax `X | None` instead. Pull Request resolved: facebook#2808 Reviewed By: mpolson64 Differential Revision: D63764095 Pulled By: Balandat
This pull request was exported from Phabricator. Differential Revision: D63764095 |
Summary: This codemods all `Optional[X]` type definitions to use the PEP 604 syntax `X | None` instead. Pull Request resolved: facebook#2808 Reviewed By: mpolson64 Differential Revision: D63764095 Pulled By: Balandat
This pull request was exported from Phabricator. Differential Revision: D63764095 |
facebook#2808 moved to PEP604 optional type annotiation. Apparently this broke some code that worked fined wiht the previously used `Optional[DBSettings]` even if `DBSettings` was not defined. I'm not entirely sure what's going on; this is more than about just delayed type annotations. Anyway, this is a hotfix that returns that code to the previous state.
Summary: #2808 moved to PEP604 optional type annotiation. Apparently this broke some code that worked fined wiht the previously used `Optional[DBSettings]` even if `DBSettings` was not defined. I'm not entirely sure what's going on; this is more than about just delayed type annotations. Anyway, this is a hotfix that returns that code to the previous state. Pull Request resolved: #2819 Reviewed By: saitcakmak Differential Revision: D63834254 Pulled By: Balandat fbshipit-source-id: 9ca80b263816d4bae9451375d5cd212752ed23c8
This codemods all
Optional[X]
type definitions to use the PEP 604 syntaxX | None
instead.