Skip to content

Conversation

@freshstrangemusic
Copy link
Member

Because:

  • The Cirrus API is stringly-typed;
  • we had a case where the types were out of sync; and
  • there were some misnamed variables, implying they were of a different type

this commit:

  • adds type hints to the SDK.compute_enrollments method.

Fixes #13717

Comment on lines +16 to +18
class ExperimentEnrollment(TypedDict):
slug: str
status: str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these live in the schemas package?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that might be for the best going forward, but lets just sneak these in for now and file a follow-up.

Because:

- The Cirrus API is stringly-typed;
- we had a case where the types were out of sync; and
- there were some misnamed variables, implying they were of a different
  type

this commit:

- adds type hints to the `SDK.compute_enrollments` method.

Fixes #13717
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.

Fix Cirrus types wrt EnrollmentRequest and TargetingContext

4 participants