-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
Hi All,
I am trying to use --find-occurrences but it looks like it might be broken.
I could also be reading --help wrong; in that case it would help if there was clear documentation on how to use it - related #2042
Commands tried:
python -m mypy <path_to_project>/some_module.py --find-occurrences Example.ClassName
python -m mypy <path_to_project>/some_module.py --find-occurrences "(Example.ClassName)"
python -m mypy <path_to_project>/some_module.py --find-occurrences "(Example,ClassName)"
python -m mypy <path_to_project>/some_module.py --find-occurrencesOutput
Traceback (most recent call last):
File "/Users/user/miniconda3/envs/bkng-data-lineage2/lib/python3.10/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/user/miniconda3/envs/bkng-data-lineage2/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/user/miniconda3/envs/bkng-data-lineage2/lib/python3.10/site-packages/mypy/__main__.py", line 37, in <module>
console_entry()
File "/Users/user/miniconda3/envs/bkng-data-lineage2/lib/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
main()
File "mypy/main.py", line 66, in main
File "mypy/main.py", line 1335, in process_options
TypeError: tuple[str, str] or None object expected; got list
Your Environment
- Mypy version used:
mypy==1.4.1,mypy-extensions==1.0.0,pylsp-mypy==0.6.7 - Mypy configuration options: None
- Python version used: 3.10
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong