diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-06 17:25:27 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-06 17:27:53 +0200 |
commit | 25f78b9d1f630c6e05310a980eb16c90df10c680 (patch) | |
tree | 2fdac6ef95d3ad8dc675c9440a37c229dd637fa4 | |
parent | 7574f6beaf9defdbc551bbe2f18064659caa870c (diff) | |
parent | fc34a4b6abe56f3ac07ca15d846b1c1955545f85 (diff) | |
download | pylint-git-25f78b9d1f630c6e05310a980eb16c90df10c680.tar.gz |
Merge maintenance-2.17.x in main following 2.17.4 release
-rw-r--r-- | doc/whatsnew/2/2.17/index.rst | 31 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8632.bugfix | 4 | ||||
-rw-r--r-- | tests/pyreverse/data/classes_No_Name.vcg | 58 | ||||
-rw-r--r-- | tests/pyreverse/data/packages_No_Name.vcg | 26 |
4 files changed, 119 insertions, 0 deletions
diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index f8395c30f..9c5323b18 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,37 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.4? +---------------------------- +Release date: 2023-05-06 + + +False Positives Fixed +--------------------- + +- Fix a false positive for ``bad-dunder-name`` when there is a user-defined + ``__index__`` method. + + Closes #8613 (`#8613 <https://github.com/PyCQA/pylint/issues/8613>`_) + + + +Other Bug Fixes +--------------- + +- ``pyreverse``: added escaping of vertical bar character in annotation labels + produced by DOT printer to ensure it is not treated as field separator of + record-based nodes. + + Closes #8603 (`#8603 <https://github.com/PyCQA/pylint/issues/8603>`_) + +- Fixed a crash when generating a configuration file: + ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` + caused by tomlkit ``v0.11.8``. + + Closes #8632 (`#8632 <https://github.com/PyCQA/pylint/issues/8632>`_) + + What's new in Pylint 2.17.3? ---------------------------- Release date: 2023-04-24 diff --git a/doc/whatsnew/fragments/8632.bugfix b/doc/whatsnew/fragments/8632.bugfix new file mode 100644 index 000000000..c6f9c01bf --- /dev/null +++ b/doc/whatsnew/fragments/8632.bugfix @@ -0,0 +1,4 @@ +Fixed a crash when generating a configuration file: ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` +caused by tomlkit ``v0.11.8``. + +Closes #8632 diff --git a/tests/pyreverse/data/classes_No_Name.vcg b/tests/pyreverse/data/classes_No_Name.vcg new file mode 100644 index 000000000..712b2cec6 --- /dev/null +++ b/tests/pyreverse/data/classes_No_Name.vcg @@ -0,0 +1,58 @@ +graph:{ + title:"classes_No_Name" + layoutalgorithm:dfs + late_edge_labels:yes + port_sharing:no + manhattan_edges:yes + node: {title:"data.clientmodule_test.Ancestor" label:"\fbAncestor\fn\n\f____________\n\f08attr : str\n\f08cls_member\n\f____________\n\f10get_value()\n\f10set_value()" + shape:box + } + node: {title:"data.suppliermodule_test.CustomException" label:"\fb09CustomException\fn\n\f_________________" + shape:box + } + node: {title:"data.suppliermodule_test.DoNothing" label:"\fbDoNothing\fn\n\f___________" + shape:box + } + node: {title:"data.suppliermodule_test.DoNothing2" label:"\fbDoNothing2\fn\n\f____________" + shape:box + } + node: {title:"data.suppliermodule_test.DoSomething" label:"\fbDoSomething\fn\n\f__________________________\n\f08my_int : Optional[int]\n\f08my_int_2 : Optional[int]\n\f08my_string : str\n\f__________________________\n\f10do_it()" + shape:box + } + node: {title:"data.suppliermodule_test.Interface" label:"\fbInterface\fn\n\f___________\n\f10get_value()\n\f10set_value()" + shape:box + } + node: {title:"data.nullable_pattern.NullablePatterns" label:"\fbNullablePatterns\fn\n\f___________________\n\f10return_nullable_1()\n\f10return_nullable_2()" + shape:box + } + node: {title:"data.property_pattern.PropertyPatterns" label:"\fbPropertyPatterns\fn\n\f__________________\n\f08prop1\n\f08prop2\n\f__________________" + shape:box + } + node: {title:"data.clientmodule_test.Specialization" label:"\fbSpecialization\fn\n\f_________________\n\f08TYPE : str\n\f08relation\n\f08relation2\n\f08top : str\n\f_________________\n\f10from_value()\n\f10increment_value()\n\f10transform_value()" + shape:box + } + edge: {sourcename:"data.clientmodule_test.Specialization" targetname:"data.clientmodule_test.Ancestor" arrowstyle:solid + backarrowstyle:none + backarrowsize:10 + } + edge: {sourcename:"data.clientmodule_test.Ancestor" targetname:"data.suppliermodule_test.Interface" arrowstyle:solid + backarrowstyle:none + linestyle:dotted + backarrowsize:10 + } + edge: {sourcename:"data.suppliermodule_test.DoNothing" targetname:"data.clientmodule_test.Ancestor" arrowstyle:solid + backarrowstyle:none + textcolor:green + label:"cls_member" + } + edge: {sourcename:"data.suppliermodule_test.DoNothing" targetname:"data.clientmodule_test.Specialization" arrowstyle:solid + backarrowstyle:none + textcolor:green + label:"relation" + } + edge: {sourcename:"data.suppliermodule_test.DoNothing2" targetname:"data.clientmodule_test.Specialization" arrowstyle:solid + backarrowstyle:none + textcolor:green + label:"relation2" + } +} diff --git a/tests/pyreverse/data/packages_No_Name.vcg b/tests/pyreverse/data/packages_No_Name.vcg new file mode 100644 index 000000000..260c46f5b --- /dev/null +++ b/tests/pyreverse/data/packages_No_Name.vcg @@ -0,0 +1,26 @@ +graph:{ + title:"packages_No_Name" + layoutalgorithm:dfs + late_edge_labels:yes + port_sharing:no + manhattan_edges:yes + node: {title:"data" label:"\fbdata\fn" + shape:box + } + node: {title:"data.clientmodule_test" label:"\fbdata.clientmodule_test\fn" + shape:box + } + node: {title:"data.nullable_pattern" label:"\fbdata.nullable_pattern\fn" + shape:box + } + node: {title:"data.property_pattern" label:"\fbdata.property_pattern\fn" + shape:box + } + node: {title:"data.suppliermodule_test" label:"\fbdata.suppliermodule_test\fn" + shape:box + } + edge: {sourcename:"data.clientmodule_test" targetname:"data.suppliermodule_test" arrowstyle:solid + backarrowstyle:none + backarrowsize:0 + } +} |