-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added escaping of vertical bar character in annotation labels #8610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DudeNr33
merged 11 commits into
pylint-dev:main
from
ViRuSTriNiTy:issue-8603-nullable-type-hint-breaks-label-in-dot-printer
Apr 26, 2023
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f2fcee6
pylint-dev/pylint#8603 `pylint/pyreverse/utils.py`, added escaping of…
ViRuSTriNiTy 11e38b1
pylint-dev/pylint#8603 `tests/pyreverse/test_utils.py`, updated `test…
ViRuSTriNiTy dba6685
pylint-dev/pylint#8603 `pylint/pyreverse/utils.py`, fixed `Unused "ty…
ViRuSTriNiTy a5864f0
pylint-dev/pylint#8603 `pylint/pyreverse/dot_printer.py`, vertical ba…
ViRuSTriNiTy 867dc9b
pylint-dev/pylint#8603 reverted changes on utils tests / replaced by …
ViRuSTriNiTy d33f338
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7894613
pylint-dev/pylint#8603 fixed line endings
ViRuSTriNiTy c6cea80
pylint-dev/pylint#8603 removed unnecessary white-spaces
ViRuSTriNiTy 28d168a
pylint-dev/pylint#8603 added doc/whatsnew/fragments/8603.bugfix
ViRuSTriNiTy 45bda1c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 72bb5af
pylint-dev/pylint#8603 `doc/whatsnew/fragments/8603.bugfix`, added py…
ViRuSTriNiTy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" docstring for file nullable_pattern.py """ | ||
from typing import Optional | ||
|
||
class NullablePatterns: | ||
def return_nullable_1(self) -> int | None: | ||
""" Nullable return type using the | operator as mentioned in PEP 604, see https://peps.python.org/pep-0604 """ | ||
pass | ||
|
||
def return_nullable_2(self) -> Optional[int]: | ||
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
@startuml packages_No_Name | ||
set namespaceSeparator none | ||
package "data" as data { | ||
|
||
} | ||
package "data.clientmodule_test" as data.clientmodule_test { | ||
|
||
} | ||
package "data.nullable_pattern" as data.nullable_pattern { | ||
} | ||
package "data.property_pattern" as data.property_pattern { | ||
|
||
} | ||
package "data.suppliermodule_test" as data.suppliermodule_test { | ||
|
||
} | ||
data.clientmodule_test --> data.suppliermodule_test | ||
@enduml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
@startuml packages_colorized | ||
set namespaceSeparator none | ||
package "data" as data #77AADD { | ||
|
||
} | ||
package "data.clientmodule_test" as data.clientmodule_test #77AADD { | ||
|
||
} | ||
package "data.nullable_pattern" as data.nullable_pattern #77AADD { | ||
} | ||
package "data.property_pattern" as data.property_pattern #77AADD { | ||
|
||
} | ||
package "data.suppliermodule_test" as data.suppliermodule_test #77AADD { | ||
|
||
} | ||
data.clientmodule_test --> data.suppliermodule_test | ||
@enduml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.