def init() -> List[SetInfo]: info = fetcher.whatsinstandard() if info['deprecated']: print('Current whatsinstandard API version is DEPRECATED.') set_info = [SetInfo.parse(s) for s in info['sets']] return [ release for release in set_info if release.enter_date.exact is not None ]
def init() -> List[SetInfoType]: info = fetcher.whatsinstandard() if info['deprecated']: print('Current whatsinstandard API version is DEPRECATED.') set_info = cast(List[SetInfoType], info['sets']) return [ postprocess(release) for release in set_info if release['enterDate']['exact'] is not None ]
def init(): info = fetcher.whatsinstandard() if info['deprecated']: print('Current whatsinstandard API version is DEPRECATED.') sets = info['sets'] return [parse_rotation_date(release) for release in sets]