Skip to content

Commit

Permalink
Fixed bug that results in confusing error message when there is a par…
Browse files Browse the repository at this point in the history
…tially-unknown metaclass type detected by the `--verifytypes` command. This addresses #9530.
  • Loading branch information
erictraut committed Dec 2, 2024
1 parent a2c380e commit 8a9f066
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,8 @@ export class PackageTypeVerifier {
if (metaclassKnownStatus !== TypeKnownStatus.Known) {
this._addSymbolError(
symbolInfo,
`Type of metaclass "${type.shared.effectiveMetaclass}" is partially unknown` + diag.getString(),
`Type of metaclass "${type.shared.effectiveMetaclass.shared.name}" is partially unknown` +
diag.getString(),
getEmptyRange(),
Uri.empty()
);
Expand Down

0 comments on commit 8a9f066

Please sign in to comment.