Skip to content

Commit a7ad6c2

Browse files
committed
chore: prepare for the 2.6.2 release
1 parent 8e5d3d2 commit a7ad6c2

File tree

5 files changed

+39
-22
lines changed

5 files changed

+39
-22
lines changed

docs/changelog.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Starting with version 1.8.0, pybind11 releases use a `semantic versioning
1010
v2.6.2 (Jan 26, 2021)
1111
---------------------
1212

13-
1413
Minor missing functionality added:
1514

1615
* enum: add missing Enum.value property.
@@ -20,6 +19,20 @@ Minor missing functionality added:
2019
``.disarm`` for ``gil_scoped_acquire``/``gil_scoped_release``.
2120
`#2657 <https://github.com/pybind/pybind11/pull/2657>`_
2221

22+
Fixed or improved behavior in a few special cases:
23+
24+
* Fix bug where the constructor of ``object`` subclasses would not throw on
25+
being passed a Python object of the wrong type.
26+
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
27+
28+
* The ``type_caster`` for integers does not convert Python objects with
29+
``__int__`` anymore with ``noconvert`` or during the first round of trying
30+
overloads.
31+
`#2698 <https://github.com/pybind/pybind11/pull/2698>`_
32+
33+
* When casting to a C++ integer, ``__index__`` is always called and not
34+
considered as conversion, consistent with Python 3.8+.
35+
`#2801 <https://github.com/pybind/pybind11/pull/2801>`_
2336

2437
Build improvements:
2538

@@ -53,23 +66,6 @@ Build improvements:
5366

5467
Bug fixes:
5568

56-
* Fix invalid access when calling a pybind11 ``__init__`` on a non-pybind11
57-
class instance.
58-
`#2755 <https://github.com/pybind/pybind11/pull/2755>`_
59-
60-
* The ``type_caster`` for integers does not convert Python objects with
61-
``__int__`` anymore with ``noconvert`` or during the first round of trying
62-
overloads.
63-
`#2698 <https://github.com/pybind/pybind11/pull/2698>`_
64-
65-
* When casting to a C++ integer, ``__index__`` is always called and not
66-
considered as conversion, consistent with Python 3.8+.
67-
`#2801 <https://github.com/pybind/pybind11/pull/2801>`_
68-
69-
* Fix bug where the constructor of ``object`` subclasses would not throw on
70-
being passed a Python object of the wrong type.
71-
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
72-
7369
* Fixed segfault in multithreaded environments when using
7470
``scoped_ostream_redirect``.
7571
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
@@ -105,6 +101,10 @@ Warning fixes:
105101

106102
Valgrind work:
107103

104+
* Fix invalid access when calling a pybind11 ``__init__`` on a non-pybind11
105+
class instance.
106+
`#2755 <https://github.com/pybind/pybind11/pull/2755>`_
107+
108108
* Fixed various minor memory leaks in pybind11's test suite.
109109
`#2758 <https://github.com/pybind/pybind11/pull/2758>`_
110110

docs/release.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ To release a new version of pybind11:
5252
name (if you didn't tag above, it will be made here), fill in a release
5353
name like "Version X.Y.Z", and optionally copy-and-paste the changelog into
5454
the description (processed as markdown by Pandoc). Check "pre-release" if
55-
this is a beta/RC.
55+
this is a beta/RC. You can get partway there with
56+
``cat docs/changelog.rst | pandsoc -f rst -t markdown``.
5657
- CLI method: with ``gh`` installed, run ``gh release create vX.Y.Z -t "Version X.Y.Z"``
5758
If this is a pre-release, add ``-p``.
5859

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define PYBIND11_VERSION_MAJOR 2
1313
#define PYBIND11_VERSION_MINOR 6
14-
#define PYBIND11_VERSION_PATCH 2.dev1
14+
#define PYBIND11_VERSION_PATCH 2
1515

1616
#define PYBIND11_NAMESPACE_BEGIN(name) namespace name {
1717
#define PYBIND11_NAMESPACE_END(name) }

pybind11/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def _to_int(s):
88
return s
99

1010

11-
__version__ = "2.6.2.dev1"
11+
__version__ = "2.6.2"
1212
version_info = tuple(_to_int(s) for s in __version__.split("."))

setup.cfg

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,20 @@ ignore =
6363

6464
[mypy]
6565
files = pybind11
66-
strict = True
66+
python_version = 2.7
67+
warn_unused_configs = True
68+
69+
# Currently (0.800) identical to --strict
70+
disallow_any_generics = True
71+
disallow_subclassing_any = True
72+
disallow_untyped_calls = True
73+
disallow_untyped_defs = True
74+
disallow_incomplete_defs = True
75+
check_untyped_defs = True
76+
disallow_untyped_decorators = True
77+
no_implicit_optional = True
78+
warn_redundant_casts = True
79+
warn_unused_ignores = True
80+
warn_return_any = True
81+
no_implicit_reexport = True
82+
strict_equality = True

0 commit comments

Comments
 (0)