Skip to content

Type check glcollate/job.py

Igor Ponomarev requested to merge igor.ponomarev/ci-collate:type-check-job into main

All of the ProjectJob attributes are dynamically typed from the REST API. Add raise TypeError if the expected type is not matched.

ProjectJob.trace() can return either None, bytes or Iterator[Any]. Add runtime type checking and raise TypeError if it returns the type we did not expect.

Depends on !78 (merged)

Edited by Igor Ponomarev

Merge request reports

Loading