Skip to content

Commit e75cfec

Browse files
authored
PYTHON-3686 Consolidate CodecOptions Typings (#1199)
1 parent dfd82d2 commit e75cfec

File tree

5 files changed

+256
-316
lines changed

5 files changed

+256
-316
lines changed

.github/workflows/test-python.yml

-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ jobs:
6868
mypy --install-types --non-interactive --disable-error-code var-annotated --disable-error-code attr-defined --disable-error-code union-attr --disable-error-code assignment --disable-error-code no-redef --disable-error-code index --allow-redefinition --allow-untyped-globals --exclude "test/mypy_fails/*.*" test
6969
python -m pip install -U typing_extensions
7070
mypy --install-types --non-interactive test/test_typing.py test/test_typing_strict.py
71-
- name: Run mypy strict
72-
run: |
73-
mypy --strict test/test_typing_strict.py
7471
- name: Run pyright
7572
run: |
7673
python -m pip install -U pip pyright==1.1.290

bson/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def decode_all(
11151115
if not isinstance(opts, CodecOptions):
11161116
raise _CODEC_OPTIONS_TYPE_ERROR
11171117

1118-
return _decode_all(data, opts) # type: ignore[arg-type]
1118+
return _decode_all(data, opts) # type:ignore[arg-type]
11191119

11201120

11211121
def _decode_selective(rawdoc: Any, fields: Any, codec_options: Any) -> Mapping[Any, Any]:

0 commit comments

Comments
 (0)