Commit Graph

14 Commits

Author SHA1 Message Date
Jib
3b21517608
PYTHON-4752 Migrate docs links to Internal Docs Where Possible (#1715)
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
2024-09-16 21:23:09 -05:00
Shane Harvey
a2059dc9cb
PYTHON-4663 Fix compatibility with dateutil timezones (#1812) 2024-08-28 14:20:55 -07:00
Shane Harvey
28697df6f8
PYTHON-4691 Fix non-UTC timezones with DATETIME_CLAMP/DATETIME_AUTO (#1811) 2024-08-28 11:39:03 -07:00
Shane Harvey
724186700f
PYTHON-3741 Fix rendering of CodecOptions links in docs (#1595) 2024-04-16 11:29:27 -07: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
Jib
c9f8829749
PYTHON-3855: Appends suggestion Use CodecOptions into errorhandler for datetime conversions (#1349)
* first commit, appends suggestion into errorhandler

* catch only ArithmeticErrors, scoped try clause, and using raise _ from

* fixed unused import

* formatting

* stepped through each logical call to ensure functional parity; added refactoring suggestions

* Revert "stepped through each logical call to ensure functional parity; added refactoring suggestions"

This reverts commit 77e99c97d6.
I took PYTHON-3739 and accidentally super-imposed it onto this one. Reverting to fix

* place the msg check in the excxeption handle

* cleaned up some code callsites. applied refactor changes. made a more generic error checking test

* edited code comment

* Update test/test_bson.py

rename just to retrigger test suite

* DECREF -> XDECREF and formatting
2023-08-23 11:34:07 -04:00
Iris
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy (#1351) 2023-08-10 11:08:36 -07:00
Noah Stapp
bcfdd200c3
PYTHON-3702 bson datetime utc import cleanup (#1233) 2023-06-15 08:57:50 -07:00
Noah Stapp
ec3437849e
PYTHON-3702 Stop using utcnow and utcfromtimestamp (#1229) 2023-06-12 15:43:30 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion (#1031) 2022-08-04 12:53:57 -07:00
Ben Warner
3c18c20795
PYTHON-3377 datetime_ms documentation page is empty (#1026)
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 12:07:04 -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