GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — INTERNAL ERROR reported if a Final isn't given specific float type · Issue #21600 · python/mypy Closed Labels DescriptionCrash Report Mypy reports an INTERNAL ERROR without information around the issue in the code that is incorrect. Traceback File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\EvQrZ-py3.13\Lib\site-packages\mypy\__main__.py", line 16, in console_entry main() ~~~~^^ File "mypy\main.py", line 154, in main File "mypy\main.py", line 244, in run_build File "mypy\build.py", line 422, in build File "mypy\build.py", line 537, in build_inner File "mypy\build.py", line 4150, in dispatch File "mypy\build.py", line 4618, in process_graph File "mypy\build.py", line 1492, in wait_for_done File "mypy\build.py", line 4824, in process_stale_scc File "mypy\build.py", line 3608, in write_cache File "mypy\build.py", line 2327, in write_cache File "mypy\nodes.py", line 597, in write File "mypy\nodes.py", line 5118, in write File "mypy\nodes.py", line 5023, in write File "mypy\nodes.py", line 4315, in write File "mypy\cache.py", line 558, in write_json File "mypy\cache.py", line 540, in write_json_value File "mypy\cache.py", line 529, in write_json_value File "mypy\cache.py", line 540, in write_json_value File "mypy\cache.py", line 540, in write_json_value File "mypy\cache.py", line 540, in write_json_value TypeError: union[None, int, str, bool, list, dict, tuple] object expected; got float note: use --pdb to drop into pdb To Reproduce Run mypy on the code file. from dataclasses import dataclass from typing import Final @dataclass(kw_only=True, repr=False) class MyDataClass: MY_CONSTANT: Final = 1.234 Your Environment
Activity
MetadataMetadataAssigneesLabelsProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |