Skip to content

Commit 53ff8a6

Browse files
authored
Update checkpattern.py
1 parent c5c12fa commit 53ff8a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checkpattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def visit_class_pattern(self, o: ClassPattern) -> PatternType:
546546
typ = self.chk.expr_checker.accept(o.class_ref)
547547
p_typ = get_proper_type(typ)
548548
if isinstance(type_info, TypeAlias) and not type_info.no_args:
549-
self.msg.fail(message_registry.CLASS_PATTERN_GENERIC_TYPE_ALIAS, o)
549+
self.msg.fail(message_registry.NOT_CALLABLE.format('"TypeAliasType"'), o)
550550
return self.early_non_match()
551551
elif isinstance(p_typ, FunctionLike) and p_typ.is_type_obj():
552552
typ = fill_typevars_with_any(p_typ.type_object())

0 commit comments

Comments
 (0)