private-attribute-cpp 1.4.1__tar.gz → 1.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: A Python package that provides a way to define private attributes in C++ implementation.
5
5
  Home-page: https://github.com/Locked-chess-official/private_attribute_cpp
6
6
  Author: HuangHaoHua
@@ -1803,7 +1803,7 @@ need_analyse_type(PyObject* type)
1803
1803
  }
1804
1804
  #if PY_VERSION_HEX < 0x030D0000
1805
1805
  PyObject* metaclass = PyWeakref_GET_OBJECT(metaclassref);
1806
- if (metaclass == (PyObject*)Py_TYPE(type)) {
1806
+ if (PyObject_IsInstance(type, metaclass)) {
1807
1807
  return true;
1808
1808
  }
1809
1809
  #else
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: private_attribute_cpp
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: A Python package that provides a way to define private attributes in C++ implementation.
5
5
  Home-page: https://github.com/Locked-chess-official/private_attribute_cpp
6
6
  Author: HuangHaoHua
@@ -19,7 +19,7 @@ readme = open('README.md').read()
19
19
 
20
20
  setup(
21
21
  name='private_attribute_cpp',
22
- version='1.4.1',
22
+ version='1.4.2',
23
23
  author="HuangHaoHua",
24
24
  author_email="13140752715@example.com",
25
25
  description='A Python package that provides a way to define private attributes in C++ implementation.',