Skip to content
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

Improve typing in SyntheticFunctions #2470

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary: A simple Pyre failure was blocking D57473132. I ended up spending way too much time trying out various options for improving typing in this file and settled on this option in the end. Updating the decorator to change the type from Optional[T] -> T is something I considered, but it requires the property to be typed as Optional[T], which made me decide to remove the decorator altogether.

Differential Revision: D57508193

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 17, 2024
Summary:

A simple Pyre failure was blocking D57473132. I ended up spending way too much time trying out various options for improving typing in this file and settled on this option in the end. Updating the decorator to change the type from `Optional[T] -> T` is something I considered, but it requires the property to be typed as `Optional[T]`, which made me decide to remove the decorator altogether.

Differential Revision: D57508193
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@codecov-commenter
Copy link

codecov-commenter commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.26%. Comparing base (0fd1eb4) to head (11e4743).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2470      +/-   ##
==========================================
- Coverage   95.26%   95.26%   -0.01%     
==========================================
  Files         485      485              
  Lines       47393    47384       -9     
==========================================
- Hits        45147    45138       -9     
  Misses       2246     2246              

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d1164d7.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants