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

Infer function params without type annotations as 'unknown' #322

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

kevinbarabash
Copy link
Contributor

@kevinbarabash kevinbarabash commented Aug 5, 2024

This will encourage type annotations on function params. There are a number of types we can't infer correctly just based on usage so having type annotations on function params will help with that.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 83.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.16%. Comparing base (e08d0aa) to head (02e0a55).

Files Patch % Lines
src/Escalier.TypeChecker/Prune.fs 57.14% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #322      +/-   ##
==========================================
- Coverage   84.82%   84.16%   -0.67%     
==========================================
  Files          23       23              
  Lines       11605    11625      +20     
  Branches     1602     1603       +1     
==========================================
- Hits         9844     9784      -60     
- Misses       1761     1841      +80     

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

@kevinbarabash kevinbarabash merged commit 4190d3e into main Aug 5, 2024
1 check passed
@kevinbarabash kevinbarabash deleted the require-fn-param-type-anns branch August 5, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants