我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用typing.Sized()。
def len(o: Sized) -> int: pass
def _registered_jobs_for_service(service: Service) -> Sized: return set(filter( lambda job: job.status is job.JobStatus.REGISTERED, service.jobs ))