Skip to content

Conversation

@FedericoNegri
Copy link
Contributor

@FedericoNegri FedericoNegri commented Jan 12, 2024

Wayne (EBU) was accidentally trying to create jobs by passing wrong object types (like project_api.create_jobs([job_definition])) and rightfully remarked that the client didn't complain about it.

In this PR, I'm adding more static type checking to update, create and delete calls. As a byproduct, I could also remove the long-standing limitations of not being able to create parameter definitions of mixed type.

@FedericoNegri FedericoNegri added the enhancement New features or code improvements label Jan 12, 2024
@FedericoNegri FedericoNegri changed the title Improve type checking for create and update requests Improve type checking for create, update and delete methods Jan 12, 2024
@FedericoNegri FedericoNegri marked this pull request as ready for review January 12, 2024 11:15
@FedericoNegri FedericoNegri merged commit 1a6f5a9 into main Jan 16, 2024
@FedericoNegri FedericoNegri deleted the fnegri/improve_type_check branch January 16, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features or code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants