Skip to content

extended error messages for unnarrowed unions #19007

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zebulonmcknight
Copy link

Fixes #17036

This is a simple option for fixing issue 17036, which has been open for over a year now. This is similar to other users (specifically dexterkennedy) attempts at solving the problem, but none of them have been successfully merged into master. At the very least hopefully this can restart the discussion and somebody can help finish fixing this issue. We may also need to add more tests for the issue, as some contributors have also failed to get the notes to print when proper.

@zebulonmcknight zebulonmcknight marked this pull request as draft April 30, 2025 20:10
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

kornia (https://github.com/kornia/kornia)
+ kornia/enhance/histogram.py:234: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/histogram.py:237: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/histogram.py:258: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/histogram.py:261: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/histogram.py:266: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/histogram.py:268: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:72: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:74: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:80: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:84: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:87: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:138: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:167: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/feature/lightglue_onnx/lightglue.py:175: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/enhance/adjust.py:726: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/augmentation/_2d/mix/transplantation.py:182: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ kornia/augmentation/_2d/mix/transplantation.py:183: note: Use "if <variableName> is not None" to ensure you have no 'None' values

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/schemas/validators.py:291: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/schemas/schedules.py:406: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/schemas/schedules.py:421: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/schemas/schedules.py:432: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/futures.py:289: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/futures.py:323: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/context.py:585: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/runner.py:563: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/tasks.py:863: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/tasks.py:975: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_engine.py:326: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_engine.py:521: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_engine.py:891: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_engine.py:1084: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:467: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:772: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:940: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:946: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:1018: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/task_engine.py:1321: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/orchestration/global_policy.py:443: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/orchestration/global_policy.py:447: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/orchestration/global_policy.py:448: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/api/concurrency_limits.py:208: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/api/concurrency_limits.py:210: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/api/concurrency_limits.py:222: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/api/concurrency_limits.py:224: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/server/api/deployments.py:77: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/workers/base.py:800: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:292: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:307: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:316: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:319: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:446: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:456: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:478: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/flow_runs.py:484: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/artifacts.py:626: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:123: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:125: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:140: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:156: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:161: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:163: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:183: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/flow_runs.py:203: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/base.py:69: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/base.py:81: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/base.py:93: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/deployments/base.py:106: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/flow_run.py:171: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/flow_run.py:172: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/flow_run.py:173: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/flow_run.py:179: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/cloud/__init__.py:727: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/cloud/__init__.py:729: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/infrastructure/provisioners/container_instance.py:731: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/infrastructure/provisioners/cloud_run.py:237: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/deploy.py:1416: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/prefect/cli/work_pool.py:248: note: Use "if <variableName> is not None" to ensure you have no 'None' values

cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/main.py:379:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/id.py:558: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ steam/clan.py:121: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ steam/client.py:707: note: Use "if <variableName> is not None" to ensure you have no 'None' values

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/expr.py:683: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ pandas/core/computation/expr.py:705: note: Use "if <variableName> is not None" to ensure you have no 'None' values

ignite (https://github.com/pytorch/ignite)
+ ignite/distributed/comp_models/base.py:271: note: Use "if <variableName> is not None" to ensure you have no 'None' values

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:84: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:95: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:96: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:101: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ porcupine/plugins/highlight/tree_sitter_highlighter.py:126: note: Use "if <variableName> is not None" to ensure you have no 'None' values

streamlit (https://github.com/streamlit/streamlit)
+ lib/tests/streamlit/logger_test.py:76:21: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/logger_test.py:80:21: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/config_test.py:545:23: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:138:27: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:141:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:147:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:148:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:155:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:156:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:165:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:167:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:170:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:180:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:221:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:236:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:245:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/websocket_session_manager_test.py:255:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:117:32: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:120:31: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:142:32: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:143:31: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:164:32: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner_utils/script_requests_test.py:165:31: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/streamlit_test.py:107:30: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/app_session_test.py:495:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py:285:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py:348:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py:387:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py:1176:24: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/form_test.py:287:33: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:226:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:227:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:233:25: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:234:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:252:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:253:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:254:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:255:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:266:29: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:275:29: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:286:31: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:304:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:314:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:315:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:323:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:324:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:339:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/delta_generator_test.py:358:30: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:59:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:77:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:100:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:126:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:152:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:174:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:199:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:225:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:251:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:268:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:290:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/bootstrap_test.py:299:15: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/server/server_test.py:212:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/web/server/server_test.py:228:31: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/metrics_util_test.py:239:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/widgets_test.py:601:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/widgets_test.py:608:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/widgets_test.py:616:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/widgets_test.py:623:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:186:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:187:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:191:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:192:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:209:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:210:21: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:224:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:225:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:248:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/runtime/state/session_state_test.py:295:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/selectbox_test.py:274:29: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/select_slider_test.py:298:33: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/radio_test.py:305:25: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/exception_test.py:155:55: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/chat_test.py:260:26: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/chat_test.py:261:37: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/chat_test.py:292:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ lib/tests/streamlit/elements/chat_test.py:293:17: note: Use "if <variableName> is not None" to ensure you have no 'None' values

SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/core.py:420: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ rolemanagement/core.py:492: note: Use "if <variableName> is not None" to ensure you have no 'None' values

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/env/python/manager.py:117: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/poetry/utils/env/python/manager.py:148: note: Use "if <variableName> is not None" to ensure you have no 'None' values

spark (https://github.com/apache/spark)
+ python/pyspark/sql/session.py:589: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ python/pyspark/pandas/groupby.py:3701: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ python/pyspark/pandas/groupby.py:3713: note: Use "if <variableName> is not None" to ensure you have no 'None' values

colour (https://github.com/colour-science/colour)
+ colour/utilities/network.py:1436: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/utilities/network.py:1481: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/utilities/network.py:1802: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/utilities/network.py:1811: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/utilities/network.py:1822: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/utilities/network.py:1831: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1042: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1044: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1045: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1046: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1176: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1178: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1179: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/models/rgb/rgb_colourspace.py:1180: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/io/tabular.py:158: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/plotting/colorimetry.py:544: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/plotting/tm3018/report.py:529: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/plotting/tm3018/report.py:624: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ colour/plotting/tm3018/report.py:708: note: Use "if <variableName> is not None" to ensure you have no 'None' values

Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/_internal/__init__.py:451: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tanjun/_internal/__init__.py:452: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tanjun/dependencies/limiters.py:814: note: Use "if <variableName> is not None" to ensure you have no 'None' values

check-jsonschema (https://github.com/python-jsonschema/check-jsonschema)
+ src/check_jsonschema/cli/param_types.py:90: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/check_jsonschema/cli/param_types.py:91: note: Use "if <variableName> is not None" to ensure you have no 'None' values

operator (https://github.com/canonical/operator)
+ ops/lib/__init__.py:274: note: Use "if <variableName> is not None" to ensure you have no 'None' values

schemathesis (https://github.com/schemathesis/schemathesis)
+ src/schemathesis/generation/hypothesis/builder.py:95: note: Use "if <variableName> is not None" to ensure you have no 'None' values

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/lint/lint.py:141: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ misc/python/materialize/cli/cloudbench.py:163: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ misc/python/materialize/cli/cloudbench.py:164: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ misc/python/materialize/parallel_workload/parallel_workload.py:372: note: Use "if <variableName> is not None" to ensure you have no 'None' values

aioredis (https://github.com/aio-libs/aioredis)
+ aioredis/connection.py:934: note: Use "if <variableName> is not None" to ensure you have no 'None' values

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/aglib/heap/structs.py:175: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ pwndbg/aglib/heap/structs.py:206: note: Use "if <variableName> is not None" to ensure you have no 'None' values

pandera (https://github.com/pandera-dev/pandera)
+ pandera/engines/numpy_engine.py:60: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ pandera/engines/numpy_engine.py:77: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ pandera/engines/pandas_engine.py:983: note: Use "if <variableName> is not None" to ensure you have no 'None' values

meson (https://github.com/mesonbuild/meson)
+ mesonbuild/mlog.py:397:9: note: Use "if <variableName> is not None" to ensure you have no 'None' values

ibis (https://github.com/ibis-project/ibis)
+ ibis/common/temporal.py:187: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/datatypes.py:1269: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/selectors.py:446: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/__init__.py:1389: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/__init__.py:1401: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/generic.py:810: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/generic.py:1393: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/generic.py:1407: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/generic.py:1583: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/generic.py:1608: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/maps.py:499: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:222: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:236: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:490: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:496: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:1022: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:1023: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:1024: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:3992: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:4418: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/expr/types/relations.py:4419: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/base.py:1225: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/base.py:1226: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/base.py:1232: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/trino.py:655: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/pyspark.py:346: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/pyspark.py:347: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sql/compilers/postgres.py:882: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/examples/gen_registry.py:329: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/tests/base.py:115: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/mssql/__init__.py:447: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/mssql/__init__.py:720: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/databricks/__init__.py:109: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/databricks/__init__.py:215: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/athena/__init__.py:62: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/trino/__init__.py:60: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/sqlite/__init__.py:498: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/snowflake/__init__.py:742: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/snowflake/__init__.py:749: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/risingwave/__init__.py:603: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/risingwave/__init__.py:944: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/postgres/__init__.py:683: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/postgres/__init__.py:738: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/postgres/__init__.py:746: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/oracle/__init__.py:255: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/mysql/__init__.py:297: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/mysql/__init__.py:461: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/exasol/__init__.py:396: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/duckdb/__init__.py:92: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/duckdb/__init__.py:177: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/duckdb/__init__.py:190: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/duckdb/__init__.py:803: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/duckdb/__init__.py:838: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/druid/tests/conftest.py:86: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/datafusion/__init__.py:298: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/datafusion/__init__.py:386: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/datafusion/__init__.py:388: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/datafusion/__init__.py:390: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/datafusion/__init__.py:393: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/clickhouse/__init__.py:500: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/clickhouse/__init__.py:714: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ ibis/backends/pyspark/__init__.py:461: note: Use "if <variableName> is not None" to ensure you have no 'None' values

discord.py (https://github.com/Rapptz/discord.py)
+ discord/mentions.py:126: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/mentions.py:131: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/appinfo.py:464: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/appinfo.py:484: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/invite.py:466: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/poll.py:449: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/guild.py:3384: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/app_commands/commands.py:234: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/app_commands/commands.py:682: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/app_commands/commands.py:683: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/app_commands/commands.py:2469: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/app_commands/commands.py:2471: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ui/select.py:1075: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ui/select.py:1076: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ui/select.py:1085: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ui/select.py:1087: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ui/select.py:1103: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/core.py:430: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/core.py:438: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/core.py:451: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/core.py:468: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/core.py:476: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/hybrid.py:315: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ discord/ext/commands/hybrid.py:325: note: Use "if <variableName> is not None" to ensure you have no 'None' values

artigraph (https://github.com/artigraph/artigraph)
+ tests/arti/internal/test_mappings.py:142: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/arti/internal/test_mappings.py:160: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/arti/internal/test_mappings.py:162: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/arti/internal/test_mappings.py:172: note: Use "if <variableName> is not None" to ensure you have no 'None' values

core (https://github.com/home-assistant/core)
+ homeassistant/components/minecraft_server/api.py:88: note: Use "if <variableName> is not None" to ensure you have no 'None' values

cki-lib (https://gitlab.com/cki-project/cki-lib)
+ tests/test_cronjob.py:83: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_cronjob.py:109: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_cronjob.py:117: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_cronjob.py:127: note: Use "if <variableName> is not None" to ensure you have no 'None' values

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/builders/html/__init__.py:430:16: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ sphinx/cmd/quickstart.py:804:21: note: Use "if <variableName> is not None" to ensure you have no 'None' values

jax (https://github.com/google/jax)
+ jax/_src/export/_export.py:763: note: Use "if <variableName> is not None" to ensure you have no 'None' values

beartype (https://github.com/beartype/beartype)
+ beartype/_util/hint/pep/proposal/pep585.py:388: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ beartype/_util/hint/pep/proposal/pep484/pep484generic.py:411: note: Use "if <variableName> is not None" to ensure you have no 'None' values

pip (https://github.com/pypa/pip)
+ src/pip/_internal/metadata/pkg_resources.py:182: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/network/utils.py:65: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/network/utils.py:95: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/network/auth.py:525: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/network/auth.py:548: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/network/session.py:409: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/index/collector.py:88: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/cli/index_command.py:131: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ src/pip/_internal/cli/index_command.py:132: note: Use "if <variableName> is not None" to ensure you have no 'None' values

comtypes (https://github.com/enthought/comtypes)
+ comtypes/errorinfo.py:128: note: Use "if <variableName> is not None" to ensure you have no 'None' values

werkzeug (https://github.com/pallets/werkzeug)
+ tests/test_wrappers.py:179: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:180: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:181: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:189: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:190: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:191: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:1079: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_wrappers.py:1082: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_test.py:166: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_test.py:168: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_test.py:306: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_test.py:307: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_routing.py:601: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_routing.py:603: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_routing.py:1310: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_local.py:191: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:159: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:160: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:161: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:164: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:165: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:166: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:169: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:170: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:171: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:183: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:184: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:185: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:186: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:187: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:188: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:189: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:190: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:191: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:192: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:202: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:203: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:204: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:205: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:206: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:207: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:208: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:212: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:216: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:222: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:223: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:228: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:229: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:253: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:254: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:255: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:256: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:264: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:265: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:266: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:267: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:268: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:270: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:277: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:278: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:283: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:284: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:636: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:637: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:638: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:641: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:642: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:643: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:646: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:647: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:648: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:651: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:652: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:653: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:656: note: Use "if <variableName> is not None" to ensure you have no 'None' values
+ tests/test_http.py:657: note: Use "if <variableName> is not None" to ensure you have no 'None' values

... (truncated 68 lines) ...```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message when union may not have been narrowed
2 participants