New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes tomli
warning about non-binary files
#10952
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duplicate of #10893 |
Diff from mypy_primer, showing the effect of this PR on open source code: freqtrade (https://github.com/freqtrade/freqtrade.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
- freqtrade/mixins/logging_mixin.py:3: error: Library stubs not installed for "cachetools" (or incompatible with Python 3.8)
- scripts/rest_client.py:20: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- scripts/rest_client.py:21: error: Library stubs not installed for "requests.exceptions" (or incompatible with Python 3.8)
- freqtrade/rpc/fiat_convert.py:10: error: Library stubs not installed for "cachetools.ttl" (or incompatible with Python 3.8)
- freqtrade/rpc/fiat_convert.py:12: error: Library stubs not installed for "requests.exceptions" (or incompatible with Python 3.8)
- freqtrade/exchange/exchange.py:17: error: Library stubs not installed for "cachetools" (or incompatible with Python 3.8)
- freqtrade/exchange/exchange.py:17: note: Hint: "python3 -m pip install types-cachetools"
- freqtrade/commands/deploy_commands.py:6: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- freqtrade/commands/deploy_commands.py:6: note: Hint: "python3 -m pip install types-requests"
- freqtrade/plugins/pairlist/rangestabilityfilter.py:9: error: Library stubs not installed for "cachetools.ttl" (or incompatible with Python 3.8)
- freqtrade/plugins/pairlist/VolumePairList.py:10: error: Library stubs not installed for "cachetools.ttl" (or incompatible with Python 3.8)
- freqtrade/plugins/pairlist/VolatilityFilter.py:11: error: Library stubs not installed for "cachetools.ttl" (or incompatible with Python 3.8)
- freqtrade/optimize/optimize_reports.py:8: error: Library stubs not installed for "tabulate" (or incompatible with Python 3.8)
- freqtrade/optimize/hyperopt_tools.py:11: error: Library stubs not installed for "tabulate" (or incompatible with Python 3.8)
- freqtrade/plugins/pairlistmanager.py:8: error: Library stubs not installed for "cachetools" (or incompatible with Python 3.8)
- freqtrade/commands/data_commands.py:114: error: Library stubs not installed for "tabulate" (or incompatible with Python 3.8)
- freqtrade/commands/data_commands.py:114: note: Hint: "python3 -m pip install types-tabulate"
- freqtrade/commands/data_commands.py:114: note: (or run "mypy --install-types" to install all missing stub packages)
- freqtrade/commands/data_commands.py:114: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- freqtrade/rpc/webhook.py:7: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- freqtrade/rpc/telegram.py:16: error: Library stubs not installed for "tabulate" (or incompatible with Python 3.8)
- freqtrade/commands/list_commands.py:10: error: Library stubs not installed for "tabulate" (or incompatible with Python 3.8)
- freqtrade/commands/optimize_commands.py:65: error: Library stubs not installed for "filelock" (or incompatible with Python 3.8)
- freqtrade/commands/optimize_commands.py:65: note: Hint: "python3 -m pip install types-filelock"
prefect (https://github.com/PrefectHQ/prefect.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
- src/prefect/utilities/graphql.py:12: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/schedules/clocks.py:5: error: Library stubs not installed for "pytz" (or incompatible with Python 3.8)
- src/prefect/schedules/clocks.py:6: error: Library stubs not installed for "croniter" (or incompatible with Python 3.8)
- src/prefect/schedules/clocks.py:6: note: Hint: "python3 -m pip install types-croniter"
- src/prefect/configuration.py:8: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
- src/prefect/utilities/filesystems.py:65: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/utilities/backend.py:1: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
- src/prefect/utilities/notifications/notifications.py:310: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/run_configs/kubernetes.py:3: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/run_configs/ecs.py:3: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/client/client.py:25: error: Library stubs not installed for "simplejson.errors" (or incompatible with Python 3.8)
- src/prefect/client/client.py:25: note: Hint: "python3 -m pip install types-simplejson"
- src/prefect/client/client.py:30: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
- src/prefect/client/client.py:30: note: Hint: "python3 -m pip install types-toml"
- src/prefect/client/client.py:31: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/client/client.py:52: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/client/client.py:52: note: Hint: "python3 -m pip install types-requests"
- src/prefect/environments/execution/k8s/job.py:6: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/storage/webhook.py:8: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/storage/webhook.py:9: error: Library stubs not installed for "requests.adapters" (or incompatible with Python 3.8)
- src/prefect/storage/webhook.py:10: error: Library stubs not installed for "requests.models" (or incompatible with Python 3.8)
- src/prefect/storage/webhook.py:11: error: Library stubs not installed for "requests.packages.urllib3.util.retry" (or incompatible with Python 3.8)
- src/prefect/storage/s3.py:6: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/storage/local.py:6: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/storage/gcs.py:4: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/storage/docker.py:15: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/storage/bitbucket.py:6: error: Library stubs not installed for "requests" (or incompatible with Python 3.8)
- src/prefect/storage/bitbucket.py:7: error: Library stubs not installed for "requests.exceptions" (or incompatible with Python 3.8)
- src/prefect/storage/bitbucket.py:8: error: Library stubs not installed for "requests.adapters" (or incompatible with Python 3.8)
- src/prefect/storage/bitbucket.py:9: error: Library stubs not installed for "requests.packages.urllib3.util.retry" (or incompatible with Python 3.8)
- src/prefect/storage/azure.py:5: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/environments/execution/dask/k8s.py:8: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/engine/results/local_result.py:2: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/core/flow.py:33: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/agent/kubernetes/agent.py:4: error: Library stubs not installed for "pytz" (or incompatible with Python 3.8)
- src/prefect/agent/kubernetes/agent.py:4: note: Hint: "python3 -m pip install types-pytz"
- src/prefect/agent/kubernetes/agent.py:11: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/agent/fargate/agent.py:9: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/agent/ecs/agent.py:5: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/agent/ecs/agent.py:6: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- src/prefect/agent/ecs/agent.py:6: note: Hint: "python3 -m pip install types-PyYAML"
- src/prefect/agent/docker/agent.py:7: error: Library stubs not installed for "slugify" (or incompatible with Python 3.8)
- src/prefect/agent/docker/agent.py:7: note: Hint: "python3 -m pip install types-python-slugify"
- src/prefect/agent/docker/agent.py:7: note: (or run "mypy --install-types" to install all missing stub packages)
- src/prefect/agent/docker/agent.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
xarray (https://github.com/pydata/xarray.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
- ci/min_deps_check.py:11: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8) [import]
- ci/min_deps_check.py:11: note: Hint: "python3 -m pip install types-PyYAML"
- ci/min_deps_check.py:11: note: (or run "mypy --install-types" to install all missing stub packages)
- ci/min_deps_check.py:11: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- ci/min_deps_check.py:12: error: Library stubs not installed for "dateutil.relativedelta" (or incompatible with Python 3.8) [import]
- ci/min_deps_check.py:12: note: Hint: "python3 -m pip install types-python-dateutil"
- xarray/core/formatting_html.py:6: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8) [import]
- xarray/backends/plugins.py:6: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8) [import]
- xarray/__init__.py:1: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8) [import]
- xarray/__init__.py:1: note: Hint: "python3 -m pip install types-setuptools"
- xarray/tests/test_plugins.py:3: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8) [import]
- xarray/tests/test_variable.py:9: error: Library stubs not installed for "pytz" (or incompatible with Python 3.8) [import]
- xarray/tests/test_variable.py:9: note: Hint: "python3 -m pip install types-pytz"
optuna (https://github.com/optuna/optuna.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
- setup.py:6: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8)
- optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:21: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:21: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:34: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v2.6.0.a_.py:34: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:19: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:19: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:28: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v1.2.0.a.py:28: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v0.9.0.a.py:18: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v0.9.0.a.py:18: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v0.9.0.a.py:119: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v0.9.0.a.py:119: note: Use "-> None" if function does not return a value
- docs/source/conf.py:19: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8)
- docs/source/conf.py:19: note: Hint: "python3 -m pip install types-setuptools"
- docs/source/conf.py:19: note: (or run "mypy --install-types" to install all missing stub packages)
- docs/source/conf.py:19: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- docs/source/conf.py:85: error: Need type annotation for "exclude_patterns" (hint: "exclude_patterns: List[<type>] = ...")
- docs/source/conf.py:130: error: Need type annotation for "latex_elements" (hint: "latex_elements: Dict[<type>, <type>] = ...")
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:29: error: Variable "v1.3.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:29: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:29: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:35: error: Variable "v1.3.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:35: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:35: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:43: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:43: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:75: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v1.3.0.a.py:75: note: Use "-> None" if function does not return a value
- optuna/storages/_redis.py:30: error: Library stubs not installed for "redis" (or incompatible with Python 3.8)
- optuna/storages/_redis.py:30: note: Hint: "python3 -m pip install types-redis"
- tutorial/20_recipes/010_reuse_best_trial.py:35: error: Function is missing a type annotation
- tutorial/20_recipes/010_reuse_best_trial.py:59: error: Function is missing a type annotation
- tutorial/20_recipes/009_ask_and_tell.py:45: error: Function is missing a type annotation
- tutorial/20_recipes/009_ask_and_tell.py:203: error: Function is missing a return type annotation
- tutorial/20_recipes/009_ask_and_tell.py:236: error: Argument 2 to "tell" of "Study" has incompatible type "Callable[[Any], Any]"; expected "Union[float, Sequence[float], None]"
- tutorial/20_recipes/008_specify_params.py:40: error: Function is missing a type annotation
- tutorial/20_recipes/007_optuna_callback.py:45: error: Function is missing a type annotation
- tutorial/20_recipes/006_user_defined_pruner.py:69: error: Function is missing a type annotation
- tutorial/20_recipes/006_user_defined_pruner.py:104: error: Function is missing a type annotation
- tutorial/20_recipes/005_user_defined_sampler.py:48: error: Function is missing a type annotation
- tutorial/20_recipes/005_user_defined_sampler.py:53: error: Function is missing a type annotation
- tutorial/20_recipes/005_user_defined_sampler.py:89: error: Function is missing a type annotation
- tutorial/20_recipes/005_user_defined_sampler.py:92: error: Function is missing a type annotation
- tutorial/20_recipes/005_user_defined_sampler.py:108: error: Function is missing a type annotation
- tutorial/20_recipes/004_cli.py:29: error: Function is missing a type annotation
- tutorial/20_recipes/004_cli.py:44: error: Name "objective" already defined on line 29
- tutorial/20_recipes/004_cli.py:44: error: Function is missing a type annotation
- tutorial/20_recipes/003_attributes.py:59: error: Function is missing a type annotation
- tutorial/20_recipes/002_multi_objective.py:29: error: Function is missing a type annotation
- tutorial/20_recipes/002_multi_objective.py:50: error: Function is missing a type annotation
- tutorial/20_recipes/002_multi_objective.py:59: error: Function is missing a type annotation
- tutorial/20_recipes/002_multi_objective.py:77: error: Function is missing a type annotation
- tutorial/20_recipes/001_rdb.py:39: error: Function is missing a type annotation
- tutorial/10_key_features/005_visualization.py:35: error: Function is missing a type annotation
- tutorial/10_key_features/005_visualization.py:112: error: Item "None" of "Optional[timedelta]" has no attribute "total_seconds"
- tutorial/10_key_features/003_efficient_optimization_algorithms.py:94: error: Function is missing a type annotation
- tutorial/10_key_features/002_configurations.py:21: error: Function is missing a type annotation
- tutorial/10_key_features/002_configurations.py:60: error: Name "objective" already defined on line 21
- tutorial/10_key_features/002_configurations.py:60: error: Function is missing a type annotation
- tutorial/10_key_features/001_first.py:29: error: Function is missing a type annotation
- optuna/cli.py:27: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- optuna/cli.py:27: note: Hint: "python3 -m pip install types-PyYAML"
- optuna/storages/_rdb/alembic/env.py:33: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/env.py:33: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/env.py:54: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/env.py:54: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:36: error: Variable "v2.4.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:36: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:36: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:42: error: Variable "v2.4.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:42: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:42: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:51: error: Variable "v2.4.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:51: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:51: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:59: error: Variable "v2.4.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:59: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:59: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:69: error: Variable "v2.4.0.a.BaseModel" is not valid as a type
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:69: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:69: error: Invalid base class "BaseModel"
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:78: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:78: note: Use "-> None" if function does not return a value
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:181: error: Function is missing a return type annotation
- optuna/storages/_rdb/alembic/versions/v2.4.0.a.py:181: note: Use "-> None" if function does not return a value
- tests/test_cli.py:11: error: Library stubs not installed for "yaml" (or incompatible with Python 3.8)
- tests/integration_tests/test_chainer.py:83: error: First argument to namedtuple() should be "MockTrainer", not "_MockTrainer"
- tests/integration_tests/test_chainer.py:84: error: First argument to namedtuple() should be "MockUpdater", not "_MockUpdater"
- tests/integration_tests/test_chainer.py:97: error: First argument to namedtuple() should be "MockTrainer", not "_MockTrainer"
pyp (https://github.com/hauntsaninja/pyp.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
more-itertools (https://github.com/more-itertools/more-itertools.git)
- Warning: unused section(s) in setup.cfg: [mypy-tests.*]
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
dedupe (https://github.com/dedupeio/dedupe.git)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
zulip (https://github.com/zulip/zulip.git)
- mypy: can't read file 'zthumbor': No such file or directory
- Warning: unused section(s) in pyproject.toml: module = ['DNS.*', 'PIL.*', 'ahocorasick.*', 'aioapns.*', 'backoff.*', 'bitfield.*', 'bmemcached.*', 'boto3.*', 'botocore.*', 'bs4.*', 'bson.*', 'cairosvg.*', 'commonmark.*', 'coverage.*', 'cssutils.*', 'defusedxml.*', 'digitalocean.*', 'disposable_email_domains.*', 'django.*', 'django_auth_ldap.*', 'django_otp.*', 'django_sendfile.*', 'django_statsd.*', 'fakeldap.*', 'gcm.*', 'gitlint.*', 'jsonref.*', 'jsonschema.*', 'ldap.*', 'markdown_include.*', 'moto.*', 'netifaces.*', 'oauthlib.*', 'onelogin.*', 'openapi_core.*', 'openapi_schema_validator.*', 'premailer.*', 'psycopg2.*', 'pyinotify.*', 'pyoembed.*', 'pyuca.*', 'recommonmark.*', 'requests_oauthlib.*', 'scrapy.*', 'social_core.*', 'social_django.*', 'sourcemap.*', 'sphinx_rtd_theme.*', 'talon_core.*', 'tlds.*', 'tornado.*', 'twitter.*', 'two_factor.*', 'zxcvbn.*']
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 67, in main
+ sources, options = process_options(args, stdout=stdout, stderr=stderr,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 909, in process_options
+ parse_config_file(options, set_strict_flags, config_file, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/config_parser.py", line 171, in parse_config_file
+ with open(config_file, 'rb', encoding="utf-8") as f:
+ ValueError: binary mode doesn't take an encoding argument
rotki (https://github.com/rotki/rotki)
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/__main__.py", line 11, in console_entry
+ main(None, sys.stdout, sys.stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 87, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/main.py", line 165, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 179, in build
+ result = _build(
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 254, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 2654, in dispatch
+ graph = load_graph(sources, manager)
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 2812, in load_graph
+ st = State(id=bs.module, path=bs.path, source=bs.text, manager=manager,
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 1896, in __init__
+ self.compute_dependencies()
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 2156, in compute_dependencies
+ dep_entries = (manager.all_imported_modules_in_file(self.tree) +
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 759, in all_imported_modules_in_file
+ if self.is_module(sub_id):
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.8/site-packages/mypy/build.py", line 782, in is_module
+ retur``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Warning source: https://github.com/hukkin/tomli/blob/eaa381a341d2a39a62680798e4ad4dceb26326a0/tomli/_parser.py#L71-L77
Output samlpe: