Skip to content

Commit

Permalink
Fix error string
Browse files Browse the repository at this point in the history
  • Loading branch information
jairov4 committed Oct 17, 2024
1 parent 689c446 commit 4fde6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mypyc/irbuild/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def check_value_type(
) -> None:
if not is_immutable(cdef) or not cdef.info.is_final:
module = module_by_fullname.get(cdef.info.module_name)
path = module.path if module else ""
# Because the value type have semantic differences we can not just ignore it
errors.error("Value types must be immutable and final", module.path, cdef.line)
errors.error("Value types must be immutable and final", path, cdef.line)

for mtd_name in (
"__iter__",
Expand Down

0 comments on commit 4fde6f9

Please sign in to comment.