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

refactor(typing): Remove "unpacking" of annotated_types #3716

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

provinzkraut
Copy link
Member

Fix some improperly constructed test cases, where annotated types were constructed as Annotated[str, annotated_types.LowerCase] instead of annotated_types.LowerCase[str], which lead to code that handled this incorrect case.

I stumbled across this during another refactor, where I wrote a correct test case that passed without this special code, while the old case was failing.

@cofin cofin force-pushed the fix-annotated-types-test branch from 855c331 to bac6f78 Compare September 3, 2024 19:51
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.29%. Comparing base (c6173a3) to head (bac6f78).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3716      +/-   ##
==========================================
- Coverage   98.29%   98.29%   -0.01%     
==========================================
  Files         330      330              
  Lines       15125    15122       -3     
  Branches     2403     2401       -2     
==========================================
- Hits        14867    14864       -3     
- Misses        116      117       +1     
+ Partials      142      141       -1     

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

Copy link

sonarqubecloud bot commented Sep 3, 2024

@provinzkraut provinzkraut merged commit 6d49fc2 into main Sep 4, 2024
26 checks passed
@provinzkraut provinzkraut deleted the fix-annotated-types-test branch September 4, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants