Summary

Comparing branches/commits:
Old: main (merge base) 7be11b49
New: 20367/merge 345feac7
Lint Rule Removed Added Changed
Total 81 1 0
invalid-argument-type 55 0 0
invalid-assignment 8 0 0
no-matching-overload 8 0 0
invalid-return-type 7 0 0
unresolved-attribute 2 0 0
possibly-unbound-attribute 1 0 0
unused-ignore-comment 0 1 0

cloud-init (https://github.com/canonical/cloud-init)

tools/validate-yaml.py

[error] unresolved-attribute - :15:28 - Type `str` has no attribute `decode`

comtypes (https://github.com/enthought/comtypes)

comtypes/test/test_variant.py

[error] invalid-argument-type - :329:32 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`

core (https://github.com/home-assistant/core)

homeassistant/components/nfandroidtv/notify.py

[error] invalid-return-type - :236:28 - Return type does not match returned value: expected `BufferedReader[_BufferedReaderStream] | bytes | None`, found `TextIOWrapper[_WrappedBuffer]`

cwltool (https://github.com/common-workflow-language/cwltool)

cwltool/run_job.py

[error] invalid-assignment - :58:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `BinaryIO | int`

cwltool/job.py

[error] invalid-assignment - :949:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `IO[bytes] | int`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

ddtrace/vendor/ply/yacc.py

[error] invalid-argument-type - :2011:34 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :2014:38 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :2015:38 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :2016:38 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :2017:38 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :2018:38 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`

dragonchain (https://github.com/dragonchain/dragonchain)

dragonchain/lib/interfaces/local/disk.py

[error] invalid-return-type - :45:12 - Return type does not match returned value: expected `bytes`, found `str`
[error] invalid-argument-type - :57:16 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`

dulwich (https://github.com/dulwich/dulwich)

dulwich/cli.py

[error] invalid-argument-type - :1809:30 - Argument to function `pack_objects` is incorrect: Expected `BinaryIO`, found `(Any & BinaryIO) | (TextIO & BinaryIO) | TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :1809:37 - Argument to function `pack_objects` is incorrect: Expected `BinaryIO | None`, found `None | TextIOWrapper[_WrappedBuffer]`

dulwich/file.py

[error] invalid-return-type - :124:16 - Return type does not match returned value: expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`

dulwich/lfs.py

[error] invalid-return-type - :134:20 - Return type does not match returned value: expected `BinaryIO`, found `TextIOWrapper[_WrappedBuffer]`

isort (https://github.com/pycqa/isort)

isort/io.py

[error] invalid-argument-type - :45:55 - Argument to function `detect_encoding` is incorrect: Expected `() -> bytes`, found `bound method TextIOWrapper[_WrappedBuffer].readline(size: int = Literal[-1], /) -> str`
[error] invalid-argument-type - :47:34 - Argument to bound method `__init__` is incorrect: Argument type `TextIOWrapper[_WrappedBuffer]` does not satisfy upper bound `_WrappedBuffer` of type variable `_BufferT_co`
[error] invalid-argument-type - :47:34 - Argument to bound method `__init__` is incorrect: Expected `_WrappedBuffer`, found `TextIOWrapper[_WrappedBuffer]`

jinja (https://github.com/pallets/jinja)

src/jinja2/bccache.py

[error] invalid-argument-type - :273:34 - Argument to bound method `load_bytecode` is incorrect: Expected `BinaryIO`, found `TextIOWrapper[_WrappedBuffer]`

src/jinja2/environment.py

[error] invalid-assignment - :1605:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `IO[bytes]`

mitmproxy (https://github.com/mitmproxy/mitmproxy)

test/mitmproxy/addons/test_savehar.py

[error] invalid-argument-type - :261:36 - Argument to bound method `__init__` is incorrect: Expected `BinaryIO`, found `TextIOWrapper[_WrappedBuffer]`

mkdocs (https://github.com/mkdocs/mkdocs)

mkdocs/livereload/__init__.py

[error] invalid-assignment - :305:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `BinaryIO`

optuna (https://github.com/optuna/optuna)

optuna/artifacts/_filesystem.py

[error] invalid-return-type - :60:16 - Return type does not match returned value: expected `BinaryIO`, found `TextIOWrapper[_WrappedBuffer]`

pytest (https://github.com/pytest-dev/pytest)

src/_pytest/assertion/rewrite.py

[error] invalid-argument-type - :402:31 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`

src/_pytest/capture.py

[error] invalid-argument-type - :143:13 - Argument to bound method `__init__` is incorrect: Argument type `TextIOWrapper[_WrappedBuffer]` does not satisfy upper bound `_WrappedBuffer` of type variable `_BufferT_co`
[error] invalid-argument-type - :143:13 - Argument to bound method `__init__` is incorrect: Expected `_WrappedBuffer`, found `TextIOWrapper[_WrappedBuffer]`

python-chess (https://github.com/niklasf/python-chess)

chess/gaviota.py

[error] invalid-return-type - :1670:16 - Return type does not match returned value: expected `BinaryIO`, found `(Unknown & ~None) | TextIOWrapper[_WrappedBuffer]`

python-sop (https://gitlab.com/dkg/python-sop)

sop/__init__.py

[error] invalid-assignment - :380:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `BinaryIO`
[error] invalid-assignment - :382:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `BinaryIO`

pywin32 (https://github.com/mhammond/pywin32)

Pythonwin/pywin/framework/scriptutils.py

[error] no-matching-overload - :317:12 - No overload of bound method `replace` matches arguments

Pythonwin/pywin/scintilla/config.py

[error] invalid-argument-type - :104:40 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :107:53 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :108:46 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :109:45 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :110:46 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :117:55 - Argument to function `load` is incorrect: Expected `SupportsRead[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :163:55 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :164:64 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :165:59 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :168:42 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :166:54 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :167:55 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`

com/win32com/client/gencache.py

[error] invalid-argument-type - :86:28 - Argument to bound method `__init__` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :130:30 - Argument to bound method `__init__` is incorrect: Expected `_ReadableFileobj`, found `BytesIO | TextIOWrapper[_WrappedBuffer]`

win32/Demos/winprocess.py

[error] invalid-argument-type - :209:19 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`

win32/test/test_win32file.py

[error] invalid-argument-type - :735:17 - Argument to bound method `write` is incorrect: Expected `str`, found `Literal[b"hello"]`

rich (https://github.com/Textualize/rich)

rich/progress.py

[error] invalid-argument-type - :1373:26 - Argument to bound method `__init__` is incorrect: Expected `BinaryIO`, found `TextIOWrapper[_WrappedBuffer]`

scipy (https://github.com/scipy/scipy)

scipy/io/_idl.py

[error] no-matching-overload - :782:9 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :782:20 - Argument to bound method `write` is incorrect: Expected `str`, found `Literal[b"SR\x00\x04"]`
[error] no-matching-overload - :789:13 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :789:24 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] no-matching-overload - :801:17 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :801:28 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] no-matching-overload - :802:17 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :803:21 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] no-matching-overload - :818:13 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :818:24 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] no-matching-overload - :819:13 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :819:24 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] no-matching-overload - :821:13 - No overload of bound method `write` matches arguments
[error] invalid-argument-type - :821:24 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`

scipy/io/matlab/tests/test_mio.py

[error] unresolved-attribute - :199:9 - Type `str` has no attribute `decode`

scipy/io/wavfile.py

[error] invalid-argument-type - :913:19 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] invalid-argument-type - :916:19 - Argument to bound method `write` is incorrect: Expected `str`, found `Literal[b"data"]`
[error] invalid-argument-type - :918:19 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] invalid-argument-type - :930:23 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`
[error] invalid-argument-type - :933:23 - Argument to bound method `write` is incorrect: Expected `str`, found `bytes`

static-frame (https://github.com/static-frame/static-frame)

static_frame/core/archive_npy.py

[error] invalid-argument-type - :453:33 - Argument to bound method `to_npy` is incorrect: Expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :466:21 - Argument to bound method `from_npy` is incorrect: Expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :479:17 - Argument to bound method `from_npy` is incorrect: Expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :492:51 - Argument to bound method `header_from_npy` is incorrect: Expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`

vision (https://github.com/pytorch/vision)

torchvision/datasets/lsun.py

[error] invalid-argument-type - :28:37 - Argument to function `load` is incorrect: Expected `_ReadableFileobj`, found `TextIOWrapper[_WrappedBuffer]`
[error] invalid-argument-type - :32:36 - Argument to function `dump` is incorrect: Expected `SupportsWrite[bytes]`, found `TextIOWrapper[_WrappedBuffer]`

werkzeug (https://github.com/pallets/werkzeug)

src/werkzeug/datastructures/file_storage.py

[error] invalid-assignment - :129:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `str | PathLike[str] | IO[bytes]`
[error] invalid-argument-type - :133:38 - Argument to function `copyfileobj` is incorrect: Expected `SupportsWrite[Unknown]`, found `IO[bytes] | (Unknown & ~str) | str | PathLike[str]`
[warning] possibly-unbound-attribute - :136:17 - Attribute `close` on type `IO[bytes] | (Unknown & ~str) | str | PathLike[str]` is possibly unbound
[error] invalid-assignment - :196:13 - Object of type `TextIOWrapper[_WrappedBuffer]` is not assignable to `IO[bytes]`

src/werkzeug/utils.py

[warning] unused-ignore-comment - :480:38 - Unused blanket `type: ignore` directive
[error] invalid-argument-type - :486:35 - Argument to function `wrap_file` is incorrect: Expected `IO[bytes]`, found `IO[bytes] | None`

zulip (https://github.com/zulip/zulip)

zerver/lib/test_helpers.py

[error] invalid-return-type - :270:12 - Return type does not match returned value: expected `IO[bytes]`, found `TextIOWrapper[_WrappedBuffer]`