Skip to content

ref: convert AuthTokenType to a StrEnum#90519

Merged
asottile-sentry merged 1 commit into
masterfrom
asottile-auth-token-type-str-enum
Apr 29, 2025
Merged

ref: convert AuthTokenType to a StrEnum#90519
asottile-sentry merged 1 commit into
masterfrom
asottile-auth-token-type-str-enum

Conversation

@asottile-sentry

Copy link
Copy Markdown
Contributor

TextChoices has some weird typing interaction with _StrPromise and doesn't really buy us much over a normal enum if we aren't using custom labels

@asottile-sentry asottile-sentry requested review from a team April 28, 2025 18:36
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 28, 2025
@asottile-sentry asottile-sentry force-pushed the asottile-auth-token-type-str-enum branch from a62ff34 to 7cad8f1 Compare April 28, 2025 18:40
@codecov

codecov Bot commented Apr 28, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #90519       +/-   ##
===========================================
+ Coverage   42.20%   87.75%   +45.54%     
===========================================
  Files       10233    10259       +26     
  Lines      579053   580111     +1058     
  Branches    22629    22629               
===========================================
+ Hits       244394   509068   +264674     
+ Misses     334216    70600   -263616     
  Partials      443      443               

TextChoices has some weird typing interaction with _StrPromise and doesn't
really buy us much over a normal enum if we aren't using custom labels
@asottile-sentry asottile-sentry force-pushed the asottile-auth-token-type-str-enum branch from 7cad8f1 to d947d33 Compare April 28, 2025 18:58
@asottile-sentry asottile-sentry merged commit f5d6d77 into master Apr 29, 2025
@asottile-sentry asottile-sentry deleted the asottile-auth-token-type-str-enum branch April 29, 2025 12:46
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants