Skip to content

Assume non-final class instances without __bool__/__len__ are truthy - #5694

Open
kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:export-D133110159
Open

kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:export-D133110159

Conversation

@kinto0

@kinto0 kinto0 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • What: as_bool treats an instance of any class without __bool__, __len__, __getattr__, __getattribute__ or __get__ as always truthy, final or not. x and x.attr with x: C | None becomes T | None, not (C & Falsy) | T | None.
  • Why: mypy and pyright make this assumption. Users hit (Model & Falsy) on Django models, which are never final. This diff measures the mypy_primer impact; it is not for landing yet.

Differential Revision: D133110159

Summary:
- What: `as_bool` treats an instance of any class without `__bool__`, `__len__`, `__getattr__`, `__getattribute__` or `__get__` as always truthy, final or not. `x and x.attr` with `x: C | None` becomes `T | None`, not `(C & Falsy) | T | None`.
- Why: mypy and pyright make this assumption. Users hit `(Model & Falsy)` on Django models, which are never final. This diff measures the mypy_primer impact; it is not for landing yet.

Differential Revision: D133110159
@meta-cla meta-cla Bot added the cla signed label Nov 19, 2026
@meta-codesync

meta-codesync Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@kinto0 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D133110159.

@github-actions

Copy link
Copy Markdown

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

============================================================
SUMMARY
============================================================
Total: +1641 new errors, -1743 fixed errors
By preset: +14/-25 (default), +14/-25 (strict)

Projects with changes (90):
  pip: +50 -50
  tornado: +4 -4
  mongo-python-driver: +90 -100
  psycopg: +16 -16
  apprise: +12 -12
  packaging: +4 -4
  mkosi: +27 -28
  mkdocs: +0 -2
  black: +55 -57
  operator: +5 -5
  openlibrary: +41 -45
  rotki: +8 -8
  isort: +6 -6
  koda-validate: +2 -2
  pytest: +10 -12
  graphql-core: +36 -34
  kopf: +4 -4
  nionutils: +5 -5
  pyppeteer: +3 -4
  jax: +5 -5
  altair: +1 -1
  flake8-pyi: +3 -3
  archinstall: +47 -47
  schema_salad: +2 -2
  python-chess: +6 -7
  cryptography: +2 -2
  urllib3: +16 -18
  httpx-caching: +1 -1
  prefect: +1 -1
  cwltool: +13 -12
  spark: +4 -4
  git-revise: +5 -5
  setuptools: +5 -5
  scikit-build-core: +4 -5
  pyinstrument: +2 -2
  alerta: +4 -12
  freqtrade: +16 -17
  pwndbg: +37 -39
  schemathesis: +12 -12
  aiortc: +8 -8
  comtypes: +3 -3
  materialize: +7 -7
  com2ann: +5 -5
  mitmproxy: +32 -36
  dulwich: +12 -13
  aioredis: +2 -2
  streamlit: +5 -5
  pytest-autoprofile: +1 -1
  cloud-init: +5 -6
  strawberry: +18 -19
  stone: +4 -4
  zulip: +21 -23
  pandera: +0 -6
  steam.py: +7 -9
  aiohttp-devtools: +1 -1
  ibis: +2 -2
  bokeh: +9 -6
  async-utils: +8 -9
  beartype: +2 -2
  antidote: +0 -3
  static-frame: +8 -8
  aiohttp: +12 -12
  pyodide: +3 -3
  mypy: +200 -204
  dragonchain: +1 -1
  rclip: +1 -1
  hydpy: +1 -1
  anyio: +5 -9
  pandas: +10 -12
  Tanjun: +57 -59
  paasta: +1 -1
  meson: +36 -40
  werkzeug: +2 -2
  pytensor: +4 -4
  sphinx: +32 -36
  core: +339 -347
  dd-trace-py: +17 -16
  nox: +1 -1
  poetry: +4 -5
  spack: +53 -56
  xarray: +8 -9
  pydantic: +5 -4
  scrapy: +11 -13
  rich: +5 -5
  pylox: +1 -1
  pylint: +59 -63
  cvxpy: +2 -3
  boostedblob: +2 -2
  django-modern-rest: +3 -3
  discord.py: +42 -54
============================================================

FULL DIFF DETAILS
------------------------------------------------------------

pip (https://github.com/pypa/pip)
- ERROR src/pip/_internal/build_env/installer.py:144:39-63: Implicit conversion of `(InstallRequirement & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/build_env/installer.py:144:39-63: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/commands/wheel.py:161:20-50: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/commands/wheel.py:161:20-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/operations/prepare.py:406:12-38: Implicit conversion of `InstallRequirement | (Requirement & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/operations/prepare.py:406:12-38: Implicit conversion of `InstallRequirement | str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/operations/prepare.py:698:17-700:77: Implicit conversion of `(ArchiveInfo & Falsy) | (Mapping[str, str] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/operations/prepare.py:698:17-700:77: Implicit conversion of `(Mapping[str, str] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/operations/prepare.py:752:17-754:31: Implicit conversion of `Literal[False] | (ArchiveInfo & Falsy) | File | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/operations/prepare.py:752:17-754:31: Implicit conversion of `Literal[False] | File | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/__init__.py:100:20-77: Implicit conversion of `(UninstallPathSet & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/__init__.py:100:20-77: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/__init__.py:104:20-73: Implicit conversion of `(UninstallPathSet & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/__init__.py:104:20-73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:103:12-44: Implicit conversion of `Literal[False] | (Requirement & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:103:12-44: Implicit conversion of `Literal[False] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:123:12-43: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:123:12-43: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:333:12-30: Implicit conversion of `(Link & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:333:12-30: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:491:30-75: Implicit conversion of `(Link & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:491:30-75: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:536:20-61: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:536:20-61: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/req/req_install.py:614:12-81: Implicit conversion of `(Requirement & Falsy) | (SpecifierSet & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/req/req_install.py:614:12-81: Implicit conversion of `(SpecifierSet & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/legacy/resolver.py:228:12-58: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/legacy/resolver.py:228:12-58: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/legacy/resolver.py:263:12-39: Implicit conversion of `(InstallRequirement & Falsy) | (Requirement & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/legacy/resolver.py:263:12-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/legacy/resolver.py:282:13-82: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/legacy/resolver.py:282:13-82: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/legacy/resolver.py:284:12-39: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/legacy/resolver.py:284:12-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/legacy/resolver.py:589:16-55: Implicit conversion of `(BaseDistribution & Truthy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/legacy/resolver.py:589:16-55: Implicit conversion of `BaseDistribution | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/resolvelib/candidates.py:68:8-70: Implicit conversion of `Literal[False] | (Requirement & Falsy) | dict[str, list[str]] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/candidates.py:68:8-70: Implicit conversion of `Literal[False] | dict[str, list[str]] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/resolvelib/resolver.py:153:18-73: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/resolver.py:153:18-73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/resolution/resolvelib/resolver.py:171:16-39: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/resolution/resolvelib/resolver.py:171:16-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/utils/logging.py:243:13-246:54: Implicit conversion of `(BaseException & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/utils/logging.py:243:13-246:54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/wheel_builder.py:52:8-47: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/wheel_builder.py:52:8-47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_internal/wheel_builder.py:56:8-36: Implicit conversion of `(Link & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_internal/wheel_builder.py:56:8-36: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/packaging/direct_url.py:337:12-83: Implicit conversion of `Literal[False] | (ArchiveInfo & Falsy) | Mapping[str, str] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/packaging/direct_url.py:337:12-83: Implicit conversion of `Literal[False] | Mapping[str, str] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/packaging/pylock.py:627:16-62: Implicit conversion of `(Version & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/packaging/pylock.py:627:16-62: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/packaging/pylock.py:647:16-62: Implicit conversion of `(Version & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/packaging/pylock.py:647:16-62: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/packaging/pylock.py:666:21-46: Implicit conversion of `(PackageSdist & Truthy) | Sequence[PackageWheel] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/packaging/pylock.py:666:21-46: Implicit conversion of `PackageSdist | Sequence[PackageWheel] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/packaging/pylock.py:856:16-88: Implicit conversion of `(Marker & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/packaging/pylock.py:856:16-88: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/syntax.py:416:12-17: Implicit conversion of `Lexer | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/syntax.py:416:12-17: Implicit conversion of `Lexer | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/syntax.py:417:16-29: Implicit conversion of `list[Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/syntax.py:417:16-29: Implicit conversion of `list[Unknown] | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/table.py:299:12-39: Implicit conversion of `(Box & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/table.py:299:12-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/table.py:774:47-76: Implicit conversion of `(Box & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/table.py:774:47-76: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/table.py:910:16-46: Implicit conversion of `(Box & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/table.py:910:16-46: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/table.py:916:16-63: Implicit conversion of `(Box & Falsy) | (Row & Falsy) | bool | int | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/table.py:916:16-63: Implicit conversion of `bool | int | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/rich/table.py:933:12-30: Implicit conversion of `(Box & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/rich/table.py:933:12-30: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/connectionpool.py:490:16-492:76: Implicit conversion of `(BaseHTTPConnection & Falsy) | (Url & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:490:16-492:76: Implicit conversion of `(Url & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/contrib/emscripten/fetch.py:459:8-38: Implicit conversion of `(_StreamingFetcher & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/fetch.py:459:8-38: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:781:12-51: Implicit conversion of `Literal['', b''] | (IO[Any] & Falsy) | (Iterable[bytes | str] & Falsy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:781:12-51: Implicit conversion of `Literal['', b''] | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:969:16-78: Implicit conversion of `(HTTPResponse & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:969:16-78: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1114:17-1116:52: Implicit conversion of `(ContentDecoder & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1114:17-1116:52: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1137:22-73: Implicit conversion of `(ContentDecoder & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1137:22-73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1215:17-1217:69: Implicit conversion of `(ContentDecoder & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1215:17-1217:69: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1281:17-1283:73: Implicit conversion of `(ContentDecoder & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1281:17-1283:73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1432:16-88: Implicit conversion of `(HTTPResponse & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1432:16-88: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/response.py:1450:20-71: Implicit conversion of `(ContentDecoder & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/response.py:1450:20-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/util/retry.py:500:12-54: Implicit conversion of `(Exception & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/util/retry.py:500:12-54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/util/retry.py:507:14-50: Implicit conversion of `(Exception & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/util/retry.py:507:14-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/util/retry.py:519:14-59: Implicit conversion of `Literal[False] | (BaseHTTPResponse & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/util/retry.py:519:14-59: Implicit conversion of `Literal[False] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR src/pip/_vendor/urllib3/util/retry.py:533:16-44: Implicit conversion of `(BaseHTTPResponse & Falsy) | int | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/pip/_vendor/urllib3/util/retry.py:533:16-44: Implicit conversion of `int | None` to `bool` is not allowed [implicit-bool]

tornado (https://github.com/tornadoweb/tornado)
- ERROR tornado/autoreload.py:221:8-40: Implicit conversion of `(ModuleSpec & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR tornado/autoreload.py:221:8-40: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR tornado/gen.py:415:12-68: Implicit conversion of `(Future[_T] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR tornado/gen.py:415:12-68: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR tornado/iostream.py:1303:13-1308:34: Implicit conversion of `Literal[True] | (Future[IOStream] & Truthy) | (Future[Any] & Truthy) | _StreamBuffer | (bytearray & Truthy) | (deque[tuple[int, Future[None]]] & Truthy)` to `bool` is not allowed [implicit-bool]
+ ERROR tornado/iostream.py:1303:13-1308:34: Implicit conversion of `Literal[True] | Future[IOStream] | Future[Any] | _StreamBuffer | (bytearray & Truthy) | (deque[tuple[int, Future[None]]] & Truthy)` to `bool` is not allowed [implicit-bool]
- ERROR tornado/template.py:307:16-44: Implicit conversion of `(BaseLoader & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR tornado/template.py:307:16-44: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- ERROR gridfs/asynchronous/grid_file.py:72:8-42: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR gridfs/asynchronous/grid_file.py:72:8-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR gridfs/synchronous/grid_file.py:72:8-42: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR gridfs/synchronous/grid_file.py:72:8-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/auth.py:92:8-41: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/auth.py:92:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/auth.py:323:8-41: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/auth.py:323:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/auth_oidc.py:72:12-45: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/auth_oidc.py:72:12-45: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/bulk.py:410:12-17: Implicit conversion of `(WriteConcern & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/bulk.py:410:12-67: Implicit conversion of `(WriteConcern & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/client_bulk.py:262:16-34: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/client_bulk.py:262:16-34: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/collection.py:2558:22-64: Implicit conversion of `(AsyncClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/collection.py:2558:22-64: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/command_runner.py:240:8-64: Implicit conversion of `(AsyncMongoClient[Any] & Falsy) | (_Encrypter & Falsy) | (_OpMsg & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/command_runner.py:240:8-64: Implicit conversion of `(AsyncMongoClient[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/command_runner.py:410:8-65: Implicit conversion of `(ReadConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/command_runner.py:410:8-65: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/command_runner.py:410:30-64: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/command_runner.py:410:30-64: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/command_runner.py:421:8-59: Implicit conversion of `(SnappyContext & Falsy) | (ZlibContext & Falsy) | (ZstdContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/command_runner.py:421:8-59: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/command_runner.py:424:8-86: Implicit conversion of `(AsyncMongoClient[Any] & Falsy) | (_Encrypter & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/command_runner.py:424:8-86: Implicit conversion of `(AsyncMongoClient[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/cursor_base.py:48:8-95: Implicit conversion of `(pymongo.asynchronous.encryption._Encrypter & Falsy) | (pymongo.synchronous.encryption._Encrypter & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/cursor_base.py:48:8-95: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:308:13-312:14: Implicit conversion of `(AutoEncryptionOpts & Falsy) | (Mapping[str, Any] & Falsy) | Any | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:308:13-312:14: Implicit conversion of `(Mapping[str, Any] & Falsy) | Any | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:608:16-42: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:608:16-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:926:32-74: Implicit conversion of `(AsyncClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:926:32-74: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:1021:21-71: Implicit conversion of `(AsyncClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:1021:21-71: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:1067:28-70: Implicit conversion of `(AsyncClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:1067:28-70: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/database.py:1140:22-64: Implicit conversion of `(AsyncClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/database.py:1140:22-64: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:1197:53-87: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:1197:53-87: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:1949:16-54: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:1949:16-54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:1970:16-50: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:1970:16-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2147:61-95: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2147:61-95: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2211:12-70: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2211:12-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2233:16-50: Implicit conversion of `(_ConnectionManager & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2243:12-70: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2243:12-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2664:12-46: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2664:12-46: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2673:12-25: Implicit conversion of `WriteConcern | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2673:12-25: Implicit conversion of `WriteConcern | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2673:12-80: Implicit conversion of `(WriteConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2677:14-27: Implicit conversion of `WriteConcern | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2677:14-27: Implicit conversion of `WriteConcern | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2677:14-74: Implicit conversion of `(WriteConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2684:43-67: Unused `# type: ignore` comment [unused-type-ignore]
- ERROR pymongo/asynchronous/mongo_client.py:2790:12-18: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2790:12-18: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2790:12-61: Implicit conversion of `Literal[False] | (AsyncClientSession & Falsy) | AsyncConnection | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2790:12-61: Implicit conversion of `Literal[False] | AsyncConnection | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2805:17-23: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2805:17-23: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2805:17-2811:18: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2805:17-2811:18: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2823:20-54: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2823:20-54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:2892:38-82: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:2892:38-82: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/mongo_client.py:3095:55-73: Implicit conversion of `(AsyncClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/mongo_client.py:3095:55-73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/monitor.py:236:16-79: Implicit conversion of `(Exception & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/monitor.py:236:16-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/monitor.py:289:12-67: Implicit conversion of `(_CancellationContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/monitor.py:289:12-67: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/topology.py:401:12-404:10: Implicit conversion of `(SrvMonitor & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/topology.py:401:12-404:10: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/asynchronous/topology.py:579:16-96: Implicit conversion of `(SrvMonitor & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/asynchronous/topology.py:579:16-96: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/bulk_shared.py:185:12-63: Implicit conversion of `(pymongo.asynchronous.encryption._Encrypter & Falsy) | (pymongo.synchronous.encryption._Encrypter & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/bulk_shared.py:185:12-63: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/client_session_shared.py:537:12-22: Implicit conversion of `(TransactionOptions & Falsy) | Any | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/client_session_shared.py:537:12-22: Implicit conversion of `Any | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/common.py:977:12-46: Implicit conversion of `(AsyncClientSession & Falsy) | (ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/common.py:977:12-46: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/cursor_shared.py:429:12-75: Implicit conversion of `(AsyncClientSession & Falsy) | (ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/cursor_shared.py:429:12-75: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/message.py:215:36-70: Implicit conversion of `(AsyncClientSession & Falsy) | (ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/message.py:215:36-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/mongo_client_shared.py:224:25-71: Implicit conversion of `(AsyncClientSession & Falsy) | (ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/mongo_client_shared.py:224:25-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/network_layer.py:509:16-62: Implicit conversion of `(Transport & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/ocsp_support.py:293:8-50: Implicit conversion of `bool | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/ocsp_support.py:293:8-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/ocsp_support.py:297:8-41: Implicit conversion of `bool | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/ocsp_support.py:297:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/ocsp_support.py:302:8-41: Implicit conversion of `bool | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/ocsp_support.py:302:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/periodic_executor.py:110:16-54: Implicit conversion of `(Task[Any] & Falsy) | int | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/periodic_executor.py:110:16-54: Implicit conversion of `int | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/pool_shared.py:215:12-76: Implicit conversion of `(ServerApi & Truthy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/pool_shared.py:215:12-76: Implicit conversion of `ServerApi | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/auth.py:90:8-41: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/auth.py:90:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/auth.py:321:8-41: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/auth.py:321:8-41: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/auth_oidc.py:72:12-45: Implicit conversion of `(_AuthContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/auth_oidc.py:72:12-45: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/bulk.py:408:12-17: Implicit conversion of `(WriteConcern & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/bulk.py:408:12-67: Implicit conversion of `(WriteConcern & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/client_bulk.py:260:16-34: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/client_bulk.py:260:16-34: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/collection.py:2549:22-64: Implicit conversion of `(ClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/collection.py:2549:22-64: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/command_runner.py:240:8-64: Implicit conversion of `(MongoClient[Any] & Falsy) | (_Encrypter & Falsy) | (_OpMsg & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/command_runner.py:240:8-64: Implicit conversion of `(MongoClient[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/command_runner.py:410:8-65: Implicit conversion of `(ReadConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/command_runner.py:410:8-65: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/command_runner.py:410:30-64: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/command_runner.py:410:30-64: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/command_runner.py:421:8-59: Implicit conversion of `(SnappyContext & Falsy) | (ZlibContext & Falsy) | (ZstdContext & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/command_runner.py:421:8-59: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/command_runner.py:424:8-86: Implicit conversion of `(MongoClient[Any] & Falsy) | (_Encrypter & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/command_runner.py:424:8-86: Implicit conversion of `(MongoClient[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/cursor_base.py:48:8-95: Implicit conversion of `(pymongo.asynchronous.encryption._Encrypter & Falsy) | (pymongo.synchronous.encryption._Encrypter & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/cursor_base.py:48:8-95: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:308:13-312:14: Implicit conversion of `(AutoEncryptionOpts & Falsy) | (Mapping[str, Any] & Falsy) | Any | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:308:13-312:14: Implicit conversion of `(Mapping[str, Any] & Falsy) | Any | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:608:16-42: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:608:16-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:926:32-74: Implicit conversion of `(ClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:926:32-74: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:1021:21-71: Implicit conversion of `(ClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:1021:21-71: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:1067:28-70: Implicit conversion of `(ClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:1067:28-70: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/database.py:1140:22-64: Implicit conversion of `(ClientSession & Falsy) | _ServerMode | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/database.py:1140:22-64: Implicit conversion of `_ServerMode | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:1197:53-87: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:1197:53-87: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:1945:16-54: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:1945:16-54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:1966:16-50: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:1966:16-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2141:61-95: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2141:61-95: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2205:12-70: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2205:12-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2227:16-50: Implicit conversion of `(_ConnectionManager & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2237:12-70: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2237:12-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2652:12-46: Implicit conversion of `(ClientSession & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2652:12-46: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2661:12-25: Implicit conversion of `WriteConcern | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2661:12-25: Implicit conversion of `WriteConcern | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2661:12-80: Implicit conversion of `(WriteConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2665:14-27: Implicit conversion of `WriteConcern | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2665:14-27: Implicit conversion of `WriteConcern | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR pymongo/synchronous/mongo_client.py:2665:14-74: Implicit conversion of `(WriteConcern & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR pymongo/synchronous/mongo_client.py:2672:43-67: Unused `# type: ignore` comment [unused-type-ignore]

... (truncated 25 lines) ...

psycopg (https://github.com/psycopg/psycopg)
- ERROR psycopg/psycopg/_connection_base.py:343:17-47: Implicit conversion of `(BaseConnection[Row] & Falsy) | list[(Diagnostic) -> None] | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_connection_base.py:343:17-47: Implicit conversion of `list[(Diagnostic) -> None] | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/_conninfo_attempts.py:100:16-46: Implicit conversion of `(ParamDef & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_conninfo_attempts.py:100:16-46: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/_conninfo_attempts_async.py:98:16-46: Implicit conversion of `(ParamDef & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_conninfo_attempts_async.py:98:16-46: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/_cursor_base.py:126:12-131:10: Implicit conversion of `(PGresult & Falsy) | bool | int | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_cursor_base.py:126:12-131:10: Implicit conversion of `bool | int | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/_cursor_base.py:151:29-35: Implicit conversion of `(PGresult & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_cursor_base.py:151:29-35: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/_server_cursor_base.py:100:29-35: Implicit conversion of `(PGresult & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/_server_cursor_base.py:100:29-35: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/rows.py:135:8-79: Implicit conversion of `(PGresult & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/rows.py:135:8-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/rows.py:217:8-79: Implicit conversion of `(PGresult & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/rows.py:217:8-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/rows.py:241:8-79: Implicit conversion of `(PGresult & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/rows.py:241:8-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/types/array.py:266:19-58: Implicit conversion of `(Dumper & Falsy) | int | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/types/array.py:266:19-58: Implicit conversion of `int | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/types/array.py:340:12-80: Implicit conversion of `(TypeInfo & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/types/array.py:340:12-80: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/types/datetime.py:667:8-67: Implicit conversion of `(BaseConnection[Any] & Falsy) | bytes | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/types/datetime.py:667:8-67: Implicit conversion of `bytes | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg/psycopg/types/datetime.py:674:8-73: Implicit conversion of `(BaseConnection[Any] & Falsy) | bytes | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg/psycopg/types/datetime.py:674:8-73: Implicit conversion of `bytes | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg_pool/psycopg_pool/pool.py:789:20-79: Implicit conversion of `(Event & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg_pool/psycopg_pool/pool.py:789:20-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR psycopg_pool/psycopg_pool/pool_async.py:870:20-79: Implicit conversion of `(AEvent & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR psycopg_pool/psycopg_pool/pool_async.py:870:20-79: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR tests/scripts/bench_compare.py:261:8-60: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR tests/scripts/bench_compare.py:261:8-60: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

apprise (https://github.com/caronc/apprise)
- ERROR apprise/config/base.py:1295:20-1297:18: Implicit conversion of `(TemplatePlaceholderMap & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:1295:20-1297:18: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/config/base.py:1326:24-63: Implicit conversion of `(TemplatePlaceholderMap & Falsy) | set[Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:1326:24-63: Implicit conversion of `set[Unknown] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/config/base.py:1381:25-1384:75: Implicit conversion of `Literal[False] | (TemplatePlaceholderMap & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:1381:25-1384:75: Implicit conversion of `Literal[False] | str | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/config/base.py:1474:24-64: Implicit conversion of `(TemplatePlaceholderMap & Falsy) | set[Unknown] | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/config/base.py:1474:24-64: Implicit conversion of `set[Unknown] | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/fcm/__init__.py:249:16-56: Implicit conversion of `Literal[''] | (LazyTranslation & Falsy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/fcm/__init__.py:249:16-56: Implicit conversion of `Literal[''] | bool` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushward.py:473:12-36: Implicit conversion of `Literal['', False] | (LazyTranslation & Falsy) | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | (float & Falsy) | list[int] | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/pushward.py:473:12-36: Implicit conversion of `Literal['', False] | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | (float & Falsy) | list[int] | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushward.py:495:12-70: Implicit conversion of `Literal[''] | (LazyTranslation & Falsy) | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/pushward.py:495:12-70: Implicit conversion of `Literal[''] | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushward.py:502:12-75: Implicit conversion of `Literal[''] | (LazyTranslation & Falsy) | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/pushward.py:502:12-75: Implicit conversion of `Literal[''] | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/pushward.py:558:12-43: Implicit conversion of `Literal[''] | (LazyTranslation & Falsy) | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/pushward.py:558:12-43: Implicit conversion of `Literal[''] | (NotifyFormat & Falsy) | (OverflowMode & Falsy) | bool | (float & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/vapid/__init__.py:350:20-26: Implicit conversion of `(EllipticCurvePrivateKey & Truthy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/plugins/vapid/__init__.py:350:20-26: Implicit conversion of `EllipticCurvePrivateKey | bool` to `bool` is not allowed [implicit-bool]
- ERROR apprise/plugins/xmpp/base.py:220:50-62: Argument `Literal[''] | (object & Truthy) | Unknown` is not assignable to parameter `value` with type `str` in function `NotifyXMPP.normalize_jid` [bad-argument-type]
+ ERROR apprise/plugins/xmpp/base.py:220:50-62: Argument `Literal[''] | object | Unknown` is not assignable to parameter `value` with type `str` in function `NotifyXMPP.normalize_jid` [bad-argument-type]
- ERROR apprise/utils/http.py:160:12-77: Implicit conversion of `(IPv4Address & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR apprise/utils/http.py:160:12-77: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

packaging (https://github.com/pypa/packaging)
- ERROR src/packaging/direct_url.py:305:12-83: Implicit conversion of `Literal[False] | (ArchiveInfo & Falsy) | Mapping[str, str] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/packaging/direct_url.py:305:12-83: Implicit conversion of `Literal[False] | Mapping[str, str] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/packaging/pylock.py:548:16-62: Implicit conversion of `(Version & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/packaging/pylock.py:548:16-62: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/packaging/pylock.py:568:16-62: Implicit conversion of `(Version & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/packaging/pylock.py:568:16-62: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/packaging/pylock.py:587:21-46: Implicit conversion of `(PackageSdist & Truthy) | Sequence[PackageWheel] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/packaging/pylock.py:587:21-46: Implicit conversion of `PackageSdist | Sequence[PackageWheel] | None` to `bool` is not allowed [implicit-bool]

mkosi (https://github.com/systemd/mkosi)
- ERROR mkosi/__init__.py:1863:13-1870:33: Implicit conversion of `(GenericVersion & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:1863:13-1870:33: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:2712:8-60: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:2712:8-60: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:3618:16-51: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:3618:16-51: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:3653:16-19: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:3653:16-19: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:4600:12-42: Implicit conversion of `(Popen[str] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:4600:12-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:4844:9-4847:47: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:4844:9-4847:47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:4852:8-101: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:4852:8-101: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:4858:8-87: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:4858:8-87: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:5176:12-36: Implicit conversion of `(Config & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:5176:12-36: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/__init__.py:5187:8-39: Implicit conversion of `(Config & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/__init__.py:5187:8-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/bootloader.py:329:25-76: Implicit conversion of `(Path & Truthy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/bootloader.py:329:25-76: Implicit conversion of `Path | bool` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/config.py:2359:13-2361:42: Implicit conversion of `(Path & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/config.py:5047:13-5049:97: Implicit conversion of `(Field[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/config.py:5047:13-5049:97: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/config.py:5385:8-68: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/config.py:5385:8-68: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/config.py:5436:8-69: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/config.py:5436:8-69: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/context.py:59:69-98: Implicit conversion of `Literal[''] | (Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/context.py:59:69-98: Implicit conversion of `Literal[''] | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/installer/apt.py:139:20-108: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/installer/apt.py:139:20-108: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/qemu.py:971:8-38: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/qemu.py:971:8-38: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/qemu.py:1319:12-106: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/qemu.py:1319:12-106: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/qemu.py:1409:12-104: Implicit conversion of `(AsyncioThread[tuple[str, str]] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/qemu.py:1409:12-104: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:566:21-53: Implicit conversion of `(SandboxProtocol & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:566:21-53: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:656:17-36: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:656:17-36: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:673:16-50: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:673:16-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:780:12-50: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:780:12-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:791:16-50: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:791:16-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/run.py:812:12-58: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/run.py:812:12-58: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/user.py:61:24-84: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/user.py:61:24-84: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR mkosi/vmspawn.py:47:8-38: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR mkosi/vmspawn.py:47:8-38: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

mkdocs (https://github.com/mkdocs/mkdocs)
- ERROR mkdocs/config/base.py:365:16-56: Implicit conversion of `(TextIO & Falsy) | bool | Any` to `bool` is not allowed [implicit-bool]
- ERROR mkdocs/utils/yaml.py:27:19-38: Implicit conversion of `(ScalarNode & Falsy) | Any` to `bool` is not allowed [implicit-bool]

black (https://github.com/psf/black)
- ERROR src/black/__init__.py:1656:16-1660:14: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/__init__.py:1656:16-1660:14: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/__init__.py:1665:16-81: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/__init__.py:1665:16-81: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:267:9-270:68: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:267:9-270:68: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:275:9-277:66: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:275:9-277:66: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:295:9-297:67: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:295:9-297:67: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:307:9-309:65: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:307:9-309:65: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:313:8-86: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:313:8-86: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:320:9-327:10: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:320:9-327:10: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/brackets.py:332:9-339:10: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/brackets.py:332:9-339:10: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/comments.py:1034:13-1037:54: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/comments.py:1034:13-1037:54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/comments.py:1070:17-1076:18: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/comments.py:1070:17-1076:18: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/comments.py:1093:17-1096:70: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/comments.py:1093:17-1096:70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:215:17-38: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:215:17-38: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:292:20-295:18: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:297:25-300:62: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:372:12-57: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:372:12-57: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:381:16-58: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:381:16-58: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1142:12-44: Implicit conversion of `(Leaf & Falsy) | list[Leaf] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1142:12-44: Implicit conversion of `list[Leaf] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1286:13-64: Implicit conversion of `(Leaf & Falsy) | list[Leaf] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1286:13-64: Implicit conversion of `list[Leaf] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1426:21-1429:84: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1426:21-1429:84: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1432:21-1434:82: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1432:21-1434:82: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1478:9-1482:48: Implicit conversion of `Literal[False] | (Node & Falsy) | dict[int, int] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1478:9-1482:48: Implicit conversion of `Literal[False] | dict[int, int] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1602:9-1604:68: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1602:9-1604:68: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:1783:13-1786:54: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:1783:13-1786:54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:2985:13-70: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:2985:13-70: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:3043:21-3048:22: Implicit conversion of `(Leaf & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:3043:21-3048:22: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:3057:16-54: Implicit conversion of `(Leaf & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:3057:16-54: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/linegen.py:3071:17-3074:89: Implicit conversion of `(Leaf & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/linegen.py:3071:17-3074:89: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/lines.py:423:13-428:56: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/lines.py:423:13-428:56: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/lines.py:1475:16-1482:14: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/lines.py:1475:16-1482:14: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/lines.py:1731:12-71: Implicit conversion of `(Leaf & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/lines.py:1731:12-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/lines.py:1825:9-1831:10: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/lines.py:1825:9-1831:10: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:256:16-84: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:256:16-84: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:260:13-262:45: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:260:13-262:45: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:266:14-85: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:266:14-85: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:283:12-45: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:283:12-45: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:351:12-44: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:351:12-44: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:370:12-35: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:370:12-35: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:376:12-50: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:376:12-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:402:16-47: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:402:16-47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:409:16-47: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:409:16-47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:426:12-39: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:426:12-39: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:434:12-52: Implicit conversion of `(Leaf & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:434:12-52: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:435:16-71: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:435:16-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:498:11-43: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:498:11-43: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:596:9-600:55: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:596:9-600:55: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:748:16-751:14: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:748:16-751:14: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:972:10-62: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:972:10-62: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:976:18-68: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:976:18-68: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:1123:12-80: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:1123:12-80: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:1125:12-66: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:1125:12-66: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/nodes.py:1160:11-84: Implicit conversion of `(Node & Falsy) | bool | (list[NL] & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/nodes.py:1160:11-84: Implicit conversion of `bool | (list[NL] & Falsy) | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/ranges.py:407:12-63: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/ranges.py:407:12-63: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/ranges.py:424:14-426:10: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/ranges.py:424:14-426:10: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/ranges.py:432:19-435:14: Implicit conversion of `(Leaf & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/ranges.py:432:19-435:14: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/trans.py:963:17-965:64: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/trans.py:963:17-965:64: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/black/trans.py:1000:20-1021:18: Implicit conversion of `(Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/black/trans.py:1000:20-1021:18: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

operator (https://github.com/canonical/operator)
- ERROR ops/_private/harness.py:599:16-52: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR ops/_private/harness.py:599:16-52: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR ops/_private/harness.py:621:16-53: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR ops/_private/harness.py:621:16-53: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR ops/_private/harness.py:639:16-53: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR ops/_private/harness.py:639:16-53: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR ops/charm.py:1621:16-60: Implicit conversion of `(ConfigMeta & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR ops/charm.py:1621:16-60: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR ops/model.py:3805:12-93: Implicit conversion of `bool | (object & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR ops/model.py:3805:12-93: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

openlibrary (https://github.com/internetarchive/openlibrary)
- ERROR openlibrary/accounts/model.py:1167:16-50: Implicit conversion of `(OpenLibraryAccount & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/accounts/model.py:1167:16-50: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/accounts/model.py:1221:12-50: Implicit conversion of `(OpenLibraryAccount & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/accounts/model.py:1221:12-50: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/admin/numbers.py:336:12-82: Implicit conversion of `(datetime & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/admin/numbers.py:336:12-82: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/book_providers.py:622:92-155: Implicit conversion of `(Acquisition & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/book_providers.py:622:92-155: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/bookworm/cli.py:348:12-47: Implicit conversion of `bool | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/bookworm/cli.py:348:12-47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/bookworm/cli.py:351:14-33: Implicit conversion of `FeedRegistry | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/bookworm/cli.py:351:14-33: Implicit conversion of `FeedRegistry | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/bookworm/opds.py:259:12-53: Implicit conversion of `(LinkProperties & Falsy) | Price | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/bookworm/opds.py:259:12-53: Implicit conversion of `Price | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/bookworm/opds.py:264:12-87: Implicit conversion of `(Availability & Falsy) | (LinkProperties & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/bookworm/opds.py:264:12-87: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/catalog/add_book/load_book.py:119:8-70: Implicit conversion of `(object & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/catalog/add_book/load_book.py:119:8-70: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/catalog/marc/parse.py:543:12-110: Implicit conversion of `(MarcFieldBase & Falsy) | list[str] | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/catalog/marc/parse.py:543:12-110: Implicit conversion of `list[str] | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/initiatives.py:371:38-62: Implicit conversion of `(Initiative & Truthy) | str` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/initiatives.py:371:38-62: Implicit conversion of `Initiative | str` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/initiatives.py:442:8-25: Implicit conversion of `date | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/initiatives.py:442:8-25: Implicit conversion of `date | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/manage.py:306:8-33: Implicit conversion of `bool | (date & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/manage.py:306:8-33: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/manage.py:308:8-53: Implicit conversion of `bool | (date & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/manage.py:308:8-53: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/manage.py:439:8-33: Implicit conversion of `bool | (date & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/manage.py:439:8-33: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/contribute/manage.py:441:8-53: Implicit conversion of `bool | (date & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/contribute/manage.py:441:8-53: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/batch_imports.py:134:66-84: The type of this argument is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR openlibrary/core/lending.py:285:44-71: Implicit conversion of `(RequestContextVars & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lending.py:285:44-71: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/lending.py:634:8-36: Implicit conversion of `(OpenLibraryAccount & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lending.py:634:8-36: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/lending.py:836:50-104: Implicit conversion of `(AbstractBookProvider[Unknown] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lending.py:836:50-104: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/lending.py:837:8-47: Implicit conversion of `(AbstractBookProvider[Unknown] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lending.py:837:8-47: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/lending.py:888:8-96: Implicit conversion of `(AbstractBookProvider[Unknown] & Falsy) | bool | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lending.py:888:8-96: Implicit conversion of `bool | Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/lists/model.py:140:24-48: Implicit conversion of `(Image & Falsy) | str | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/lists/model.py:140:24-48: Implicit conversion of `str | Unknown` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/models.py:988:12-59: Implicit conversion of `(Visitor & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/models.py:988:12-59: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/processors/invalidation.py:92:12-84: Implicit conversion of `bool | (datetime & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/processors/invalidation.py:92:12-84: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/core/wikidata.py:208:12-37: Implicit conversion of `(Sentry & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/core/wikidata.py:208:12-37: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/fastapi/account.py:319:8-57: Implicit conversion of `(OpenLibraryAccount & Falsy) | User | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/fastapi/account.py:319:8-57: Implicit conversion of `User | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/fastapi/models.py:163:16-42: Implicit conversion of `(SolrInternalsParams & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/fastapi/models.py:163:16-42: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/fastapi/search.py:666:60-103: Implicit conversion of `(SearchResponse & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/fastapi/search.py:666:60-103: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/openlibrary/partials.py:185:19-96: The type of `acquisition` is partially unknown; it contains an implicit `Any` [partially-unknown-type]
- ERROR openlibrary/plugins/openlibrary/partials.py:186:34-45: Implicit conversion of `(AbstractBookProvider[Unknown] & Falsy) | Acquisition | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/openlibrary/partials.py:186:34-45: Implicit conversion of `Acquisition | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/openlibrary/partials.py:771:43-109: Implicit conversion of `(AuthenticatedUser & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/openlibrary/partials.py:771:43-109: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/openlibrary/status.py:150:12-65: Implicit conversion of `Literal[''] | (GitHubPRInfo & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/openlibrary/status.py:150:12-65: Implicit conversion of `Literal[''] | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/account.py:485:8-57: Implicit conversion of `(OpenLibraryAccount & Falsy) | User | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/account.py:485:8-57: Implicit conversion of `User | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/account.py:665:12-51: Implicit conversion of `(OpenLibraryAccount & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/account.py:665:12-51: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/addbook.py:281:16-96: Implicit conversion of `(Recaptcha & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/addbook.py:281:16-96: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/addbook.py:865:12-100: Implicit conversion of `(Recaptcha & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/addbook.py:865:12-100: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/addbook.py:931:12-100: Implicit conversion of `(Recaptcha & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/addbook.py:931:12-100: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/borrow.py:180:9-191:74: Implicit conversion of `(AbstractBookProvider[Unknown] & Falsy) | bool | (list[Acquisition] & Falsy) | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/borrow.py:180:9-191:74: Implicit conversion of `bool | (list[Acquisition] & Falsy) | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/upstream/mybooks.py:804:27-50: Implicit conversion of `(Image & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/upstream/mybooks.py:804:27-50: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/worksearch/autocomplete.py:76:30-32: Implicit conversion of `(Iterable[str] & Truthy) | tuple[str, ...]` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/worksearch/autocomplete.py:76:30-32: Implicit conversion of `Iterable[str] | tuple[str, ...]` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/plugins/worksearch/code.py:1115:64-107: Implicit conversion of `(SearchResponse & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/plugins/worksearch/code.py:1115:64-107: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/solr/updater/edition.py:429:12-76: Implicit conversion of `(WorkSolrBuilder & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/solr/updater/edition.py:436:14-29: Implicit conversion of `SolrDocument | WorkSolrBuilder` to `bool` is not allowed [implicit-bool]
+ ERROR openlibrary/solr/updater/edition.py:436:14-29: Implicit conversion of `SolrDocument` to `bool` is not allowed [implicit-bool]
- ERROR openlibrary/solr/updater/edition.py:436:14-67: Implicit conversion of `(WorkSolrBuilder & Falsy) | bool` to `bool` is not allowed [implicit-bool]

rotki (https://github.com/rotki/rotki)
- ERROR rotkehlchen/accounting/accountant.py:185:30-44: Implicit conversion of `(Premium & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/accounting/accountant.py:185:30-44: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/accounting/accountant.py:286:20-34: Implicit conversion of `(Premium & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/accounting/accountant.py:286:20-34: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/chain/evm/decoding/hop/decoder.py:390:16-82: Implicit conversion of `(Asset & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/chain/evm/decoding/hop/decoder.py:390:16-82: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/data_import/importers/rotki_events.py:77:12-31: Implicit conversion of `(FVal & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/data_import/importers/rotki_events.py:77:12-31: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/history/events/utils.py:95:8-78: Implicit conversion of `(DBLocationFilter & Falsy) | LocationIdentifier | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/history/events/utils.py:95:8-78: Implicit conversion of `LocationIdentifier | None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/tests/unit/test_utils.py:187:20-41: Implicit conversion of `Version | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/tests/unit/test_utils.py:187:20-41: Implicit conversion of `None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/tests/unit/test_utils.py:197:20-41: Implicit conversion of `Version | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/tests/unit/test_utils.py:197:20-41: Implicit conversion of `None` to `bool` is not allowed [implicit-bool]
- ERROR rotkehlchen/tests/unit/test_utils.py:207:20-41: Implicit conversion of `Version | None` to `bool` is not allowed [implicit-bool]
+ ERROR rotkehlchen/tests/unit/test_utils.py:207:20-41: Implicit conversion of `None` to `bool` is not allowed [implicit-bool]

isort (https://github.com/pycqa/isort)
- ERROR isort/api.py:158:31-73: Implicit conversion of `(Path & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR isort/api.py:158:31-73: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]
- ERROR isort/api.py:185:8-73: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR isort/api.py:185:8-73: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR isort/api.py:477:16-41: Implicit conversion of `(TextIO & Truthy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR isort/api.py:477:16-41: Implicit conversion of `TextIO | bool` to `bool` is not allowed [implicit-bool]
- ERROR isort/api.py:487:20-489:18: Implicit conversion of `(TextIO & Truthy) | bool` to `bool` is not allowed [implicit-bool]
+ ERROR isort/api.py:487:20-489:18: Implicit conversion of `TextIO | bool` to `bool` is not allowed [implicit-bool]
- ERROR isort/api.py:634:8-638:6: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR isort/api.py:634:8-638:6: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR isort/settings.py:629:12-83: Implicit conversion of `(Path & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR isort/settings.py:629:12-83: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

koda-validate (https://github.com/keithasaurus/koda-validate)
- ERROR koda_validate/signature.py:237:22-77: Implicit conversion of `(Validator[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR koda_validate/signature.py:237:22-77: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR koda_validate/signature.py:302:22-77: Implicit conversion of `(Validator[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR koda_validate/signature.py:302:22-77: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]

pytest (https://github.com/pytest-dev/pytest)
- ERROR src/_pytest/_code/code.py:1589:12-18: Implicit conversion of `Literal[''] | (Path & Truthy)` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/_code/code.py:1589:12-18: Implicit conversion of `Literal[''] | Path` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/approx.py:551:17-553:48: Implicit conversion of `(_RealLike & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/capture.py:850:12-22: Implicit conversion of `(CaptureFixture[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/capture.py:850:12-22: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/capture.py:853:12-21: Implicit conversion of `(MultiCapture[str] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/capture.py:853:12-21: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/capture.py:858:16-25: Implicit conversion of `(MultiCapture[str] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/capture.py:858:16-25: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/capture.py:860:16-26: Implicit conversion of `(CaptureFixture[Any] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/capture.py:860:16-26: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/python.py:476:16-37: Implicit conversion of `(Class & Falsy) | Unknown | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/python.py:476:16-37: Implicit conversion of `Unknown | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/runner.py:567:16-52: Implicit conversion of `(Node & Falsy) | bool` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/runner.py:579:30-63: Implicit conversion of `(Item & Falsy) | list[Node] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/runner.py:579:30-63: Implicit conversion of `list[Node] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/skipping.py:291:8-71: Implicit conversion of `(Xfail & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/skipping.py:291:8-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/skipping.py:301:8-71: Implicit conversion of `(Xfail & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/skipping.py:301:8-71: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/_pytest/subtests.py:130:12-78: Implicit conversion of `(CapturedLogs & Falsy) | str | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/_pytest/subtests.py:130:12-78: Implicit conversion of `str | None` to `bool` is not allowed [implicit-bool]

graphql-core (https://github.com/graphql-python/graphql-core)
- ERROR tests/language/test_parser.py:871:16-27: Implicit conversion of `(Location & Falsy) | Token | None` to `bool` is not allowed [implicit-bool]
+ ERROR tests/language/test_parser.py:871:16-27: Implicit conversion of `Token | None` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/error/graphql_error.py:273:12-49: Implicit conversion of `(Collection[Node] & Falsy) | (Node & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/error/graphql_error.py:273:12-49: Implicit conversion of `(Collection[Node] & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/error/graphql_error.py:283:12-41: Implicit conversion of `Literal[False] | list[Location | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/error/graphql_error.py:283:12-41: Implicit conversion of `Literal[False] | list[Location]` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/error/graphql_error.py:285:16-26: Implicit conversion of `Source | Unknown` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/error/graphql_error.py:285:16-26: Implicit conversion of `Source` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/error/graphql_error.py:287:12-44: Implicit conversion of `Literal[False] | list[Location | Unknown]` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/error/graphql_error.py:287:12-44: Implicit conversion of `Literal[False] | list[Location]` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/error/graphql_error.py:348:14-44: Implicit conversion of `(Source & Falsy) | list[SourceLocation] | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/error/graphql_error.py:348:14-44: Implicit conversion of `list[SourceLocation] | None` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/execution/collect_fields.py:394:8-63: Implicit conversion of `(DirectiveNode & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/execution/collect_fields.py:394:8-63: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/execution/collect_fields.py:423:8-66: Implicit conversion of `(DirectiveNode & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]
+ ERROR src/graphql/execution/collect_fields.py:423:8-66: Implicit conversion of `bool | None` to `bool` is not allowed [implicit-bool]
- ERROR src/graphql/execution/executor.py:545:22-81: Implicit conversion of `(NameNode & Falsy) | bool | None` to `bool` is not allowed [implicit-bool]

... (truncated 2088 lines) ...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant