The Light
44d1d40d65
PYTHON-5115 Type validation errors should include the invalid type name ( #2085 )
...
Co-authored-by: Iris Ho <iris.ho@mongodb.com>
2025-01-31 12:01:58 -08:00
Navjot
fdcbe2e622
PYTHON-1982 Update Invalid Document error message to include doc ( #1854 )
...
Co-authored-by: Navjot Singh <navjot@Navjots-Air.station>
Co-authored-by: Navjot Singh <navjot@Navjots-MacBook-Air.local>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
2024-12-03 08:22:06 -06:00
Steven Silvester
3ef565fa43
PYTHON-4796 Update type checkers and handle with_options typing ( #1880 )
2024-09-30 18:01:53 -05:00
Shane Harvey
a4645f0f8b
PYTHON-4712 Improve BSON encoding/decoding docs ( #1823 )
2024-08-30 13:36:40 -07:00
Steven Silvester
fd0787a57b
PYTHON-4615 Address sign-compare warning, improve array_of_documents_to_buffer validation ( #1804 )
2024-08-27 19:05:15 -05:00
Shane Harvey
b8d6bfdf08
PYTHON-4144 Optimize json_util encoding performance using single dispatch table ( #1475 )
2024-01-18 11:43:36 -08:00
Steven Silvester
6537415da7
PYTHON-3605 Move type annotations to parameter list in rendered docs ( #1441 )
2023-11-27 09:24:00 -06:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Steven Silvester
83ab612aa1
PYTHON-3932 Support mypy --strict testing in bson package ( #1362 )
2023-08-29 13:49:11 -05:00
Iris
0d44783edd
PYTHON-3821 use overload pattern for _DocumentType ( #1352 )
2023-08-10 16:46:41 -07:00
Iris
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy ( #1351 )
2023-08-10 11:08:36 -07:00
Shane Harvey
469e2e95f5
PYTHON-3511 Cleanup some more Python 2 references ( #1309 )
2023-07-14 17:02:24 -04:00
Soroush Mahdavi
c6a6ea6066
PYTHON-3511 Remove Python 2 references from the docs ( #1161 )
...
Co-authored-by: Nicky Lee <40870742+iceypotato@users.noreply.github.com>
Co-authored-by: DanielZavala11 <89770626+DanielZavala11@users.noreply.github.com>
Co-authored-by: Shane Harvey <shane.harvey@mongodb.com>
2023-07-14 15:30:14 -04:00
Iris
992df04da6
PYTHON-3831 remove _DocumentIn ( #1308 )
2023-07-14 11:12:58 -07:00
Iris
f813f56362
PYTHON-3803 add types to encryption.py ( #1296 )
2023-07-11 08:24:15 -07:00
stephan-hof
8b23204408
PYTHON-3758 Support overflow integers in fallback_encoder. ( #1243 )
...
bson only supports 64-bit integer within range:
[-9_223_372_036_854_775_807, +9_223_372_036_854_775_807]
This change calls the fallback_encoder before raising OverflowError on
integers outside of this range.
2023-06-26 15:20:01 -04:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 ( #1196 )
...
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Jean-Christophe Fillion-Robin
d340710e3d
PYTHON-3703 Fix typos and add codespell pre-commit hook ( #1203 )
...
Update pre-commit config adding "codespell" hook
2023-05-03 14:47:24 -07:00
Steven Silvester
e75cfec34f
PYTHON-3686 Consolidate CodecOptions Typings ( #1199 )
2023-04-28 16:11:27 -05:00
Steven Silvester
a3720d9cea
PYTHON-3568 Intellisense highlights multiple PyMongo methods because of CodecOptions ( #1139 )
2023-01-25 09:41:23 -06:00
Steven Silvester
449cb8fb0f
PYTHON-2722 Improve performance of find/aggregate_raw_batches ( #1047 )
2022-09-22 15:14:40 -05:00
Ben Warner
3204290e93
PYTHON-2484 Added lock sanitization for MongoClient and ObjectId ( #985 )
2022-08-04 16:58:56 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion ( #1031 )
2022-08-04 12:53:57 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion ( #981 )
...
https://jira.mongodb.org/browse/PYTHON-1824
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version ( #1021 )
...
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Steven Silvester
b40f13bf7d
PYTHON-3311 Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled ( #994 )
2022-07-06 18:30:00 -05:00
Shane Harvey
dca72b7884
PYTHON-3222 Fix memory leak in cbson decode_all ( #927 )
...
Add decode_all keyword arg for codec_options.
Make decode_all show up in docs.
2022-04-12 17:18:23 -07:00
Steven Silvester
b3604a81d3
PYTHON-3171 Add usage of NoReturn annotation ( #901 )
2022-03-16 15:26:10 -05:00
Steven Silvester
474420b2e5
PYTHON-3085 Audit consistent and correct types for _DocumentOut ( #893 )
2022-03-16 05:56:07 -05:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
2db512f5d5
PYTHON-3078 Remove Use of Unsupported NoReturn Type Class ( #864 )
2022-02-14 16:14:36 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
dd6c140d43
PYTHON-3060 Add typings to pymongo package ( #831 )
2022-02-02 21:12:36 -06:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself ( #829 )
2022-01-13 16:09:48 -06:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) ( #724 )
...
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Shane Harvey
afa3997bb2
PYTHON-2680 Breaking changes to DBRef BSON+JSON decoding ( #722 )
...
Implement DBRef spec version 1.0 tests.
2021-09-10 11:03:25 -07:00
Shane Harvey
69c69a6bfb
PYTHON-2862 Remove versionchanged info for PyMongo <3.0 ( #709 )
2021-08-19 10:39:26 -07:00
Shane Harvey
5fd175c0d8
PYTHON-2529 Remove UUIDLegacy ( #698 )
2021-08-06 16:52:41 -07:00
Prashant Mital
209d5009e6
PYTHON-1860 Use OP_MSG for find/aggregate_raw_batches when supported ( #622 )
2021-05-19 12:05:35 -07:00
Bernie Hackett
521f7b9af4
PYTHON-2133 Fix up docs
...
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
c70071df1d
PYTHON-2133 Remove Py2 compatibility from bson
2021-01-14 14:57:20 -08:00
Prashant Mital
4760d07815
PYTHON-2152 Expand native UUID handling support; Implement UUID specification
2020-06-01 17:45:08 -07:00
paul fisher
6c4e1c9371
PYTHON-2061 bson: check for negative entry size in decode_file_iter ( #429 )
...
Raise InvalidBSON instead of ValueError when decode_file_iter reads an invalid
BSON object size.
2019-11-22 14:57:00 -08:00
Shane Harvey
57302846b7
PYTHON-1930 Fix pure python decoder support for memoryviews
2019-08-02 12:17:45 -07:00
Bernie Hackett
3bcdde34c9
PYTHON-1785 Add bson.encode and bson.decode
2019-07-30 11:52:03 -07:00
Bernie Hackett
57c7f8ccbb
PYTHON-1785 Pure Python decoders support the buffer protocol
2019-07-30 11:51:24 -07:00
Shane Harvey
6b6efd9b59
PYTHON-1664 Include type in InvalidDocument error
2019-04-19 16:51:04 -07:00
Prashant Mital
2f2fe9db0d
PYTHON-1818 TypeCodec support for ChangeStreams
2019-04-18 18:02:12 -07:00
Shane Harvey
fbb56a2311
PYTHON-1820 Validate bson size in RawBSONDocument init
...
Also fixes a bug where an empty bson document could not be represented
by RawBSONDocument.
2019-04-18 15:15:10 -07:00
Shane Harvey
2cb34e4efc
PYTHON-1814 Support custom type decoder with distinct
...
Fix pure python custom type decoding of bson arrays.
2019-04-17 15:44:51 -07:00