We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689c446 commit 4fde6f9Copy full SHA for 4fde6f9
mypyc/irbuild/prepare.py
@@ -150,8 +150,9 @@ def check_value_type(
150
) -> None:
151
if not is_immutable(cdef) or not cdef.info.is_final:
152
module = module_by_fullname.get(cdef.info.module_name)
153
+ path = module.path if module else ""
154
# 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)
155
+ errors.error("Value types must be immutable and final", path, cdef.line)
156
157
for mtd_name in (
158
"__iter__",
0 commit comments