Skip to content

Commit

Permalink
PYTHON-3686 Consolidate CodecOptions Typings (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Apr 28, 2023
1 parent dfd82d2 commit e75cfec
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 316 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ jobs:
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
python -m pip install -U typing_extensions
mypy --install-types --non-interactive test/test_typing.py test/test_typing_strict.py
- name: Run mypy strict
run: |
mypy --strict test/test_typing_strict.py
- name: Run pyright
run: |
python -m pip install -U pip pyright==1.1.290
Expand Down
2 changes: 1 addition & 1 deletion bson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def decode_all(
if not isinstance(opts, CodecOptions):
raise _CODEC_OPTIONS_TYPE_ERROR

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


def _decode_selective(rawdoc: Any, fields: Any, codec_options: Any) -> Mapping[Any, Any]:
Expand Down
Loading

0 comments on commit e75cfec

Please sign in to comment.