class MyClass:
    pass

class AnotherClass:
    pass

class YetAnotherClass:
    pass

def match_classes(cls):
    match cls:
        case MyClass:  # Matches if `cls` is the `MyClass` type
            return "Matched MyClass"
        case AnotherClass:  # Matches if `cls` is the `AnotherClass` type
            return "Matched AnotherClass"
        case YetAnotherClass:  # Matches if `cls` is the `YetAnotherClass` type
            return "Matched YetAnotherClass"
        case _:
            return "Unknown class"

# Example usage
if __name__ == "__main__":
    print(match_classes(MyClass))          # Should print: Matched MyClass
    print(match_classes(AnotherClass))    # Should print: Matched AnotherClass
    print(match_classes(YetAnotherClass)) # Should print: Matched YetAnotherClass
    print(match_classes(str))             # Should print: Unknown class
