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
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
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy ( #1351 )
2023-08-10 11:08:36 -07: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
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
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself ( #829 )
2022-01-13 16:09:48 -06:00
Julius Park
c38085269b
PYTHON-1337 Add __slots__ to commonly used bson classes ( #739 )
2021-09-24 13:54:40 -07:00
Shane Harvey
f9bfd11290
PYTHON-2870 Add support for man/text/latex/etc.. docs output ( #708 )
...
Regenerate sphinx makefile with sphinx-quickstart 3.5.4.
Remove problematic mongodoc sphinx extension.
2021-08-19 13:31:46 -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
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
A. Jesse Jiryu Davis
08dccbba46
Remove ancient version annotations.
...
Delete "versionchanged" and "versionadded" directives that predate 2.0.
2014-10-31 14:15:24 -04:00
Luke Lovett
d4a94d30fd
PYTHON-673 python 2/3 single-source for the bson module
2014-04-17 21:29:15 +00:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
behackett
2483775f0b
Silence C extension RuntimeWarning PYTHON-569
...
When encoding a document in C while running in a python sub interpreter
(e.g. mod_wsgi spawning sub interpreters) PyMongo would often have
to reload its cache of pure python types - ObjectId, Timestamp,
UUID, etc. - raising RuntimeWarning in the process. The reason this was
necessary is described in the mod_wsgi documentation here:
https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters
With workarounds documented here:
http://api.mongodb.org/python/2.6.2/faq.html#does-pymongo-work-with-mod-wsgi
With this commit PyMongo will no longer use cached pure python types
when running in a sub interpreter. Instead it will look up pure python
types as needed (primarily when decoding BSON). This eliminates the
problem described in the mod_wsgi docs and eliminates the need for the
Runtime warning.
2013-09-16 17:24:37 -04:00
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
behackett
8cde67c330
Update bson module docs and comments for python 3.
2012-03-21 15:37:31 -07:00
behackett
7474f5cde8
Python 3 bson changes PYTHON-84
2012-03-20 13:56:15 -07:00
Sidorenko Vladimir
d87ed7675d
bson: fixed kwargs hash in DBRef
2011-04-05 10:09:10 -07:00
behackett
1d1d8729fd
Fix pickling/unpickling of DBRef PYTHON-231
2011-04-05 09:46:21 -07:00
Mathias Stearn
a19fd9b8dc
Support deepcopy of DBRef PYTHON-169
2010-10-19 14:07:39 -04:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00