void () { doTest("Person", """ from typing import TypeGuard class Person(TypedDict): name: str age: int def is_person(val: dict) -> TypeGuard[Person]: try: return isinstance(val["name"], str) and isinstance(val["age"], int) except KeyError: return False def print_age(val: dict, val2: dict): if is_person(val) and is_person(val2): expr = val else: print("Not a person!")"""); }