Skip to content

Commit

Permalink
Add test for bad line break
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Aug 30, 2023
1 parent 5beb5ed commit 95b688a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
digraph "classes" {
rankdir=BT
charset="utf-8"
"line_breaks.A" [color="black", fontcolor="black", label=<{A|<br ALIGN="LEFT"/>|<I>f</I>(x: str | None)<br ALIGN="LEFT"/>}>, shape="record", style="solid"];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
classDiagram
class A {
f(x: str | None)*
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@startuml classes
set namespaceSeparator none
class "A" as line_breaks.A {
{abstract}f(x: str | None)
}
@enduml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# OPEN BUG: https://github.com/pylint-dev/pylint/issues/8671

class A:
def f(self, x: str | None):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[testoptions]
output_formats=mmd,dot,puml

0 comments on commit 95b688a

Please sign in to comment.