Skip to content

Commit

Permalink
Merge maintenance 2.17.x in main (#8665)
Browse files Browse the repository at this point in the history
Refs #8664
  • Loading branch information
Pierre-Sassoulas authored May 6, 2023
2 parents 7574f6b + 25f78b9 commit 8776ba0
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
31 changes: 31 additions & 0 deletions doc/whatsnew/2/2.17/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions doc/whatsnew/fragments/8632.bugfix
Original file line number Diff line number Diff line change
@@ -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
58 changes: 58 additions & 0 deletions tests/pyreverse/data/classes_No_Name.vcg
Original file line number Diff line number Diff line change
@@ -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:"\fb 09CustomException\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"
}
}
26 changes: 26 additions & 0 deletions tests/pyreverse/data/packages_No_Name.vcg
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 8776ba0

Please sign in to comment.